From 24d10de8af0f27fa1013659d3f9af5fd45ed9259 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Fri, 5 Oct 2012 08:26:16 +0200 Subject: [PATCH] suricata: change dir to / in daemon mode. By changing directory to /, we will not block the directory where suricata has been started. --- src/util-daemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util-daemon.c b/src/util-daemon.c index dad536b8ff..9215d3b73d 100644 --- a/src/util-daemon.c +++ b/src/util-daemon.c @@ -133,6 +133,8 @@ void Daemonize (void) { exit(EXIT_FAILURE); } */ + chdir("/"); + SetupLogging(); /* Child is ready, tell its parent */