From 0c3474b45e9ed8ad85bc524fa131033123da2d51 Mon Sep 17 00:00:00 2001 From: Ira Cooper Date: Tue, 6 Mar 2012 20:58:37 -0500 Subject: s3: piddir creation fix part 2. Since the piddir got moved from the lockdir by default, the default piddir wasn't getting created, stopping some configurations from running. Signed-off-by: Jeremy Allison --- source3/nmbd/nmbd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/nmbd') diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 7bd4facbb1..52d7ed9e4e 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -937,6 +937,10 @@ static bool open_sockets(bool isdaemon, int port) mkdir(lp_lockdir(), 0755); } + if (!directory_exist(lp_piddir())) { + mkdir(lp_piddir(), 0755); + } + pidfile_create("nmbd"); status = reinit_after_fork(msg, nmbd_event_context(), -- cgit