diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-03-08 05:06:32 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-03-08 05:06:32 +0000 |
commit | 72ae1a1266c9ae54a2cb8b5b2d31e602365829d8 (patch) | |
tree | 1e4df331668005c69e088b5af48dad4d8039a49c /sys-boot/palo/files | |
parent | note another test-related bug (diff) | |
download | gentoo-2-72ae1a1266c9ae54a2cb8b5b2d31e602365829d8.tar.gz gentoo-2-72ae1a1266c9ae54a2cb8b5b2d31e602365829d8.tar.bz2 gentoo-2-72ae1a1266c9ae54a2cb8b5b2d31e602365829d8.zip |
Version bump with only trivial changes, but with an extra patch to build with -D_FORTIFY_SOURCE=2.
(Portage version: 2.2_rc65/cvs/Linux i686)
Diffstat (limited to 'sys-boot/palo/files')
-rw-r--r-- | sys-boot/palo/files/palo-1.17-fortify-source.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys-boot/palo/files/palo-1.17-fortify-source.patch b/sys-boot/palo/files/palo-1.17-fortify-source.patch new file mode 100644 index 000000000000..6a6adcdafdca --- /dev/null +++ b/sys-boot/palo/files/palo-1.17-fortify-source.patch @@ -0,0 +1,15 @@ + * palo/palo.c: Supply a mode to open() to go with the O_CREAT flag. + +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506083 + +--- a/palo/palo.c ++++ b/palo/palo.c +@@ -479,7 +479,7 @@ + error(14, "bootloader"); + + sprintf(badblockfilename, "/tmp/paloblk-%d", getpid()); +- if ((fd = open(badblockfilename, O_RDWR | O_CREAT | O_TRUNC)) < 0) { ++ if ((fd = open(badblockfilename, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0) { + perror(badblockfilename); + exit(1); + } |