auto-create the locks directory on startup
authorAndrew Tridgell <tridge@samba.org>
Tue, 11 Nov 1997 00:48:42 +0000 (00:48 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 11 Nov 1997 00:48:42 +0000 (00:48 +0000)
(This used to be commit a0ab8fe54c27d9f25266c5abfd60458827500dfd)

source3/nmbd/nmbd.c
source3/smbd/server.c

index 696889c4844a4932e8bcb81ec66ad5251007a956..5067a7efc88cab1c4b82628e3b499a43107d8793 100644 (file)
@@ -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;
index 908cf984b8e4a0b822514bdb55f52a62a4af682e..278087b60aacf5a53d59bd5e2906b8e85733ab24 100644 (file)
@@ -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;