projects
/
oweals
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3018420
)
set global umask to 0
author
John Crispin
<blogic@openwrt.org>
Mon, 24 Jun 2013 16:56:34 +0000
(18:56 +0200)
committer
John Crispin
<blogic@openwrt.org>
Mon, 24 Jun 2013 16:56:34 +0000
(18:56 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index f97a9eaedbfb1bf6009ffdeb4f0f6f638f037b0b..71531e3b857c7a4187818429db22131f173047b7 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-14,6
+14,7
@@
#include <sys/wait.h>
#include <sys/types.h>
+#include <sys/stat.h>
#include <unistd.h>
#include <getopt.h>
@@
-67,6
+68,7
@@
int main(int argc, char **argv)
return usage(argv[0]);
}
}
+ umask(0);
uloop_init();
procd_signal();
if (getpid() != 1)