aboutsummaryrefslogtreecommitdiffstats
path: root/packages/gettext/gettext-0.17
diff options
context:
space:
mode:
authorwoglinde <heinold@inf.fu-berlin.de>2008-10-17 18:13:39 +0200
committerwoglinde <heinold@inf.fu-berlin.de>2008-10-17 18:13:39 +0200
commit3e8df80fdfb2da7672e1a771b70ccd30b119b968 (patch)
tree2f6a74a188ae3ac4f738bf8bec12959eed7d39e7 /packages/gettext/gettext-0.17
parentc6535102cb928756eb419b007e9bd14caf6cf1c8 (diff)
downloadopenembedded-3e8df80fdfb2da7672e1a771b70ccd30b119b968.tar.gz
gettext: add patch open() mode from ubuntu
* add use_open_properly.patch from ubuntu gettext_0.17-3ubuntu2.diff * bump PR on native and target
Diffstat (limited to 'packages/gettext/gettext-0.17')
-rw-r--r--packages/gettext/gettext-0.17/use_open_properly.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/gettext/gettext-0.17/use_open_properly.patch b/packages/gettext/gettext-0.17/use_open_properly.patch
new file mode 100644
index 0000000000..111714b543
--- /dev/null
+++ b/packages/gettext/gettext-0.17/use_open_properly.patch
@@ -0,0 +1,15 @@
+Index: gettext-0.17/gettext-tools/src/write-catalog.c
+===================================================================
+--- gettext-0.17.orig/gettext-tools/src/write-catalog.c 2008-10-16 15:18:16.000000000 +0200
++++ gettext-0.17/gettext-tools/src/write-catalog.c 2008-10-16 18:17:13.000000000 +0200
+@@ -220,7 +220,9 @@
+ /* Open the output file. */
+ if (!to_stdout)
+ {
+- fd = open (filename, O_WRONLY | O_CREAT);
++ fd = open (filename, O_WRONLY | O_CREAT,
++ /* 0666 in portable POSIX notation: */
++ S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
+ if (fd < 0)
+ {
+ const char *errno_description = strerror (errno);