summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-06-24 18:56:34 +0200
committerJohn Crispin <blogic@openwrt.org>2013-06-24 18:56:34 +0200
commitbdac146facb72ce3f88f682d598d3124ec73fe78 (patch)
treed9e707d0ffa13906235a9d92d97c8a85dbe243aa
parent3018420f7fd004b48715100d2f60b27c64d48b75 (diff)
downloadunitd-bdac146facb72ce3f88f682d598d3124ec73fe78.tar
unitd-bdac146facb72ce3f88f682d598d3124ec73fe78.zip
set global umask to 0
Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index f97a9ea..71531e3 100644
--- 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)