13 lines
516 B
Diff
13 lines
516 B
Diff
diff -up cpu-1.4.3/src/util/fileaction.c.rhel6 cpu-1.4.3/src/util/fileaction.c
|
|
--- cpu-1.4.3/src/util/fileaction.c.rhel6 2003-02-17 16:25:37.000000000 -0700
|
|
+++ cpu-1.4.3/src/util/fileaction.c 2013-02-01 16:09:46.762978006 -0700
|
|
@@ -197,7 +197,7 @@ copy (char * directory, char * newdirect
|
|
}
|
|
close (fd1);
|
|
|
|
- if ((fd2 = open (homefile, O_CREAT | O_EXCL | O_WRONLY)) == -1)
|
|
+ if ((fd2 = open (homefile, O_CREAT | O_EXCL | O_WRONLY, S_IRWXU)) == -1)
|
|
{
|
|
perror ("open");
|
|
free (data);
|