From bdac146facb72ce3f88f682d598d3124ec73fe78 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 24 Jun 2013 18:56:34 +0200 Subject: [PATCH] set global umask to 0 Signed-off-by: John Crispin --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index f97a9ea..71531e3 100644 --- a/main.c +++ b/main.c @@ -14,6 +14,7 @@ #include #include +#include #include #include @@ -67,6 +68,7 @@ int main(int argc, char **argv) return usage(argv[0]); } } + umask(0); uloop_init(); procd_signal(); if (getpid() != 1) -- 2.25.1