projects
/
dss.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1c6346c
)
daemon: Do not change to /.
author
Andre Noll
<maan@tuebingen.mpg.de>
Tue, 14 Jun 2016 08:40:22 +0000
(10:40 +0200)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 21 Aug 2016 19:13:25 +0000
(21:13 +0200)
This is pointless because we immediately cd back into the destination
dir anyway.
daemon.c
patch
|
blob
|
history
diff --git
a/daemon.c
b/daemon.c
index 24bbfe5cdaaa22b03924fd4aba0cf379a1de22e1..86e89066aedf048757cc2f4e55674e909a0168a0 100644
(file)
--- a/
daemon.c
+++ b/
daemon.c
@@
-45,8
+45,6
@@
void daemon_init(void)
/* become session leader */
if (setsid() < 0)
goto err;
- if (chdir("/") < 0)
- goto err;
umask(0);
null = open("/dev/null", O_RDWR);
if (null < 0)