diff options
author | John Crispin <blogic@openwrt.org> | 2013-06-24 18:56:34 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-06-24 18:56:34 +0200 |
commit | bdac146facb72ce3f88f682d598d3124ec73fe78 (patch) | |
tree | d9e707d0ffa13906235a9d92d97c8a85dbe243aa | |
parent | 3018420f7fd004b48715100d2f60b27c64d48b75 (diff) | |
download | unitd-bdac146facb72ce3f88f682d598d3124ec73fe78.tar unitd-bdac146facb72ce3f88f682d598d3124ec73fe78.zip |
set global umask to 0
Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |