Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 0b9eadfd661fb132132cdf35cc0a6ec8 > files > 2

cpu-1.4.3-9mdv2010.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);