Package: cpu / 1.4.3-12

08_add-flag-for-O_CREAT.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Fix FTBFS in Intrepid caused by -D_FORTIFY_SOURCE=2 flag
 Patch lifted from the Ubuntu diff
Author: Devid Antonio Filoni <d.filoni@ubuntu.com>

--- a/src/util/fileaction.c
+++ b/src/util/fileaction.c
@@ -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_IRUSR|S_IWUSR)) == -1)
 		{
 		  perror ("open");
 		  free (data);