summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/gettext/gettext-0.18.1.1/use_open_properly.patch
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2011-05-24 14:53:51 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-01 18:34:32 +0100
commit39e10b599021ef2abe992ee09c7c937fbe166a77 (patch)
treeab62cb19ac9b16d29cdfad679a963d4a7e5cb909 /meta/recipes-core/gettext/gettext-0.18.1.1/use_open_properly.patch
parentcbaca4e4fcc02711cff2a5c47b7dfc1b00baa32b (diff)
downloadpoky-39e10b599021ef2abe992ee09c7c937fbe166a77.tar.gz
gettext: Update to 0.18.1.1
Add Upstream Status tags to patches (From OE-Core rev: 13fff2baf108e07eaf2d7e4c982bbdf9089c6bad) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/gettext/gettext-0.18.1.1/use_open_properly.patch')
-rw-r--r--meta/recipes-core/gettext/gettext-0.18.1.1/use_open_properly.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-core/gettext/gettext-0.18.1.1/use_open_properly.patch b/meta/recipes-core/gettext/gettext-0.18.1.1/use_open_properly.patch
new file mode 100644
index 0000000000..a04a32dff9
--- /dev/null
+++ b/meta/recipes-core/gettext/gettext-0.18.1.1/use_open_properly.patch
@@ -0,0 +1,17 @@
1Upstream-Status: Pending
2
3Index: gettext-0.17/gettext-tools/src/write-catalog.c
4===================================================================
5--- gettext-0.17.orig/gettext-tools/src/write-catalog.c 2008-10-16 15:18:16.000000000 +0200
6+++ gettext-0.17/gettext-tools/src/write-catalog.c 2008-10-16 18:17:13.000000000 +0200
7@@ -220,7 +220,9 @@
8 /* Open the output file. */
9 if (!to_stdout)
10 {
11- fd = open (filename, O_WRONLY | O_CREAT);
12+ fd = open (filename, O_WRONLY | O_CREAT,
13+ /* 0666 in portable POSIX notation: */
14+ S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
15 if (fd < 0)
16 {
17 const char *errno_description = strerror (errno);