s3: piddir creation fix.
authorIra Cooper <ira@samba.org>
Wed, 7 Mar 2012 00:25:16 +0000 (19:25 -0500)
committerJeremy Allison <jra@samba.org>
Wed, 7 Mar 2012 19:00:44 +0000 (11:00 -0800)
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>
source3/smbd/server.c

index e348e0b5e055b120befeaffb8224b211f527fe8a..22b6a7a134bef1306484a72d8a12a67c35fc756e 100644 (file)
@@ -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");