summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorIra Cooper <ira@samba.org>2012-03-06 19:25:16 -0500
committerJeremy Allison <jra@samba.org>2012-03-07 11:00:44 -0800
commit25fbf907e90a70e167c56dd63b44b0f5ff1d27a7 (patch)
tree1dfd656a826289dde369ae53b67ca5307dcc0b58 /source3
parent7b1fb088421565f1752acde02377237e4ca19248 (diff)
downloadsamba-25fbf907e90a70e167c56dd63b44b0f5ff1d27a7.tar.gz
samba-25fbf907e90a70e167c56dd63b44b0f5ff1d27a7.tar.bz2
samba-25fbf907e90a70e167c56dd63b44b0f5ff1d27a7.zip
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 <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index e348e0b5e0..22b6a7a134 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");