Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > 2d9e7066d0b7fed95c2c78213a87377e > files > 2

cpu-1.4.3-7.1mdv2009.0.src.rpm

Index: src/util/fileaction.c
===================================================================
--- src/util/fileaction.c
+++ src/util/fileaction.c	2008-07-07 16:04:31.000000000 +0200
@@ -197,7 +197,7 @@
 		}
 	      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);