From bd55215eb1f1c8d041170743dcee5e069d5706b8 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 21 Aug 2009 21:30:23 +0200 Subject: [PATCH] daemon: Don't set the umask to zero. Clearing umask creates more problems that it solves. --- daemon.c | 1 - 1 file changed, 1 deletion(-) diff --git a/daemon.c b/daemon.c index 12b19275..3bcb6e01 100644 --- 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; -- 2.39.5