blob: 1280dafcbd711858a3c42accd5dabc88cdd3e6fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
|