1 |
slords |
1.1 |
diff -up cpu-1.4.3/src/util/fileaction.c.rhel6 cpu-1.4.3/src/util/fileaction.c |
2 |
|
|
--- cpu-1.4.3/src/util/fileaction.c.rhel6 2003-02-17 16:25:37.000000000 -0700 |
3 |
|
|
+++ cpu-1.4.3/src/util/fileaction.c 2013-02-01 16:09:46.762978006 -0700 |
4 |
|
|
@@ -197,7 +197,7 @@ copy (char * directory, char * newdirect |
5 |
|
|
} |
6 |
|
|
close (fd1); |
7 |
|
|
|
8 |
|
|
- if ((fd2 = open (homefile, O_CREAT | O_EXCL | O_WRONLY)) == -1) |
9 |
|
|
+ if ((fd2 = open (homefile, O_CREAT | O_EXCL | O_WRONLY, S_IRWXU)) == -1) |
10 |
|
|
{ |
11 |
|
|
perror ("open"); |
12 |
|
|
free (data); |