void-packages/templates/gettext/patches/fix_open_mode.diff

12 lines
457 B
Diff

--- gettext-tools/src/write-catalog.c.orig 2009-04-29 15:59:51.212345437 +0200
+++ gettext-tools/src/write-catalog.c 2009-04-29 16:00:26.023855357 +0200
@@ -220,7 +220,7 @@ message catalog has plural form translat
/* Open the output file. */
if (!to_stdout)
{
- fd = open (filename, O_WRONLY | O_CREAT);
+ fd = open (filename, O_WRONLY | O_CREAT, 0755);
if (fd < 0)
{
const char *errno_description = strerror (errno);