mcst-linux-kernel/patches-2024.06.26/cpu-1.4.3/0006-add-flag-for-O_CREAT.p...

16 lines
467 B
Diff

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);