diff options
Diffstat (limited to 'meta/recipes-core/gettext/gettext-0.17/use_open_properly.patch')
-rw-r--r-- | meta/recipes-core/gettext/gettext-0.17/use_open_properly.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-core/gettext/gettext-0.17/use_open_properly.patch b/meta/recipes-core/gettext/gettext-0.17/use_open_properly.patch new file mode 100644 index 0000000000..111714b543 --- /dev/null +++ b/meta/recipes-core/gettext/gettext-0.17/use_open_properly.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | Index: gettext-0.17/gettext-tools/src/write-catalog.c | ||
2 | =================================================================== | ||
3 | --- gettext-0.17.orig/gettext-tools/src/write-catalog.c 2008-10-16 15:18:16.000000000 +0200 | ||
4 | +++ gettext-0.17/gettext-tools/src/write-catalog.c 2008-10-16 18:17:13.000000000 +0200 | ||
5 | @@ -220,7 +220,9 @@ | ||
6 | /* Open the output file. */ | ||
7 | if (!to_stdout) | ||
8 | { | ||
9 | - fd = open (filename, O_WRONLY | O_CREAT); | ||
10 | + fd = open (filename, O_WRONLY | O_CREAT, | ||
11 | + /* 0666 in portable POSIX notation: */ | ||
12 | + S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); | ||
13 | if (fd < 0) | ||
14 | { | ||
15 | const char *errno_description = strerror (errno); | ||