summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Cooper <ira@samba.org>2012-03-06 20:58:37 -0500
committerJeremy Allison <jra@samba.org>2012-03-07 11:01:57 -0800
commit0c3474b45e9ed8ad85bc524fa131033123da2d51 (patch)
treee679c37bd696336c0a968732b32d875f4097b51f
parente19cf64356580b965c257f0b3b6ef9ca5b03ed62 (diff)
downloadsamba-0c3474b45e9ed8ad85bc524fa131033123da2d51.tar.gz
samba-0c3474b45e9ed8ad85bc524fa131033123da2d51.tar.bz2
samba-0c3474b45e9ed8ad85bc524fa131033123da2d51.zip
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 <jra@samba.org>
-rw-r--r--source3/nmbd/nmbd.c4
-rw-r--r--source3/winbindd/winbindd.c4
2 files changed, 8 insertions, 0 deletions
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(),
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index 3806eb8b2b..d1d36fd007 100644
--- a/source3/winbindd/winbindd.c
+++ b/source3/winbindd/winbindd.c
@@ -1404,6 +1404,10 @@ int main(int argc, char **argv, char **envp)
mkdir(lp_lockdir(), 0755);
}
+ if (!directory_exist(lp_piddir())) {
+ mkdir(lp_piddir(), 0755);
+ }
+
/* Setup names. */
if (!init_names())