From 25fbf907e90a70e167c56dd63b44b0f5ff1d27a7 Mon Sep 17 00:00:00 2001 From: Ira Cooper Date: Tue, 6 Mar 2012 19:25:16 -0500 Subject: [PATCH] s3: piddir creation fix. 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/smbd/server.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/smbd/server.c b/source3/smbd/server.c index e348e0b5e05..22b6a7a134b 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -1216,6 +1216,9 @@ extern void build_options(bool screen); if (!directory_exist(lp_lockdir())) mkdir(lp_lockdir(), 0755); + if (!directory_exist(lp_piddir())) + mkdir(lp_piddir(), 0755); + if (is_daemon) pidfile_create("smbd"); -- 2.11.4.GIT