1 http://bugs.gentoo.org/show_bug.cgi?id=232081
3 diff -Nru /var/tmp/portage/sys-devel/gettext-0.17-r1/work/gettext-0.17/gettext-tools/src/write-catalog.c /root/hardened/gettext-0.17/gettext-tools/src/write-catalog.c
4 --- /gettext-0.17/gettext-tools/src/write-catalog.c 2007-10-07 21:37:39.000000000 +0200
5 +++ /gettext-0.17/gettext-tools/src/write-catalog.c 2008-06-16 00:28:11.000000000 +0200
7 /* Open the output file. */
10 - fd = open (filename, O_WRONLY | O_CREAT);
11 + fd = open (filename, O_WRONLY | O_CREAT, S_IRUSR|S_IWUSR);
14 const char *errno_description = strerror (errno);