daemon: Do not change to /.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 14 Jun 2016 08:40:22 +0000 (10:40 +0200)
committerAndre 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

index 24bbfe5..86e8906 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)