aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-support/obexpush/files/fix-open.patch
diff options
context:
space:
mode:
authorlumag <dbaryshkov@gmail.com>2015-05-11 22:38:26 +0300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2015-05-26 09:24:05 +0100
commit1ca779af6b83b5320006f2e0d43940828eb782e6 (patch)
treea08e0e73781449c7a210badfcfcf35f537666849 /recipes-support/obexpush/files/fix-open.patch
parent2931066d598d7a70f6507c2d8e5367f551b32e8e (diff)
downloadmeta-opie-1ca779af6b83b5320006f2e0d43940828eb782e6.tar.gz
obexpush: fix compilation error
Newer glibc is strict on passing mode argument to open() call if O_CREAT has been specified. Provide reasonable mode argument to fix compilation error. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'recipes-support/obexpush/files/fix-open.patch')
-rw-r--r--recipes-support/obexpush/files/fix-open.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes-support/obexpush/files/fix-open.patch b/recipes-support/obexpush/files/fix-open.patch
new file mode 100644
index 0000000..1280daf
--- /dev/null
+++ b/recipes-support/obexpush/files/fix-open.patch
@@ -0,0 +1,18 @@
+Index: obexpush/opd/main.c
+===================================================================
+--- obexpush.orig/opd/main.c
++++ obexpush/opd/main.c
+@@ -562,11 +562,11 @@ int main(int argc, char **argv,char *env
+ dup2(fd, 0);
+ close(fd);
+
+- fd = open("_opd_msgs.txt", O_RDWR | O_CREAT);
++ fd = open("_opd_msgs.txt", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
+ dup2(fd, 1);
+ close(fd);
+
+- fd = open("_opd_errs.txt", O_RDWR | O_CREAT);
++ fd = open("_opd_errs.txt", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
+ dup2(fd, 2);
+ close(fd);
+