summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/nmbd/nmbd.c4
-rw-r--r--source3/smbd/server.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 696889c484..5067a7efc8 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -594,6 +594,10 @@ static void usage(char *pname)
become_daemon();
}
+ if (!directory_exist(lp_lockdir(), NULL)) {
+ mkdir(lp_lockdir(), 0755);
+ }
+
if (*pidFile)
{
int fd;
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 908cf984b8..278087b60a 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -5138,6 +5138,10 @@ static void usage(char *pname)
become_daemon();
}
+ if (!directory_exist(lp_lockdir(), NULL)) {
+ mkdir(lp_lockdir(), 0755);
+ }
+
if (*pidFile)
{
int fd;