daemon: Don't set the umask to zero.
authorAndre Noll <maan@systemlinux.org>
Fri, 21 Aug 2009 19:30:23 +0000 (21:30 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 21 Aug 2009 19:30:23 +0000 (21:30 +0200)
Clearing umask creates more problems that it solves.

daemon.c

index 12b1927..3bcb6e0 100644 (file)
--- a/daemon.c
+++ b/daemon.c
@@ -167,7 +167,6 @@ void daemonize(void)
                goto err;
        if (chdir("/") < 0)
                goto err;
-       umask(0);
        null = open("/dev/null", O_RDONLY);
        if (null < 0)
                goto err;