]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
suricata: change dir to / in daemon mode.
authorEric Leblond <eric@regit.org>
Fri, 5 Oct 2012 06:26:16 +0000 (08:26 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 9 Nov 2012 15:06:46 +0000 (16:06 +0100)
By changing directory to /, we will not block the directory where
suricata has been started.

src/util-daemon.c

index dad536b8fff1f3b4e1226aadfa023b4f1d854599..9215d3b73db9551e84c48a6a53ba322a05fc6c6c 100644 (file)
@@ -133,6 +133,8 @@ void Daemonize (void) {
             exit(EXIT_FAILURE);
         } */
 
+        chdir("/");
+
         SetupLogging();
 
         /* Child is ready, tell its parent */