]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 12b19275de9f6c561e021dad1b06ed9fae1ba4b9..3bcb6e019a442ddf7a8709759937a7d2bd603bf6 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;