projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5446dfe
)
daemon: Don't set the umask to zero.
author
Andre Noll
<maan@systemlinux.org>
Fri, 21 Aug 2009 19:30:23 +0000
(21:30 +0200)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/daemon.c
b/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;