blob: f1fa5fe0d2cc49cd49837e4c71a19c145a9bde3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-ap,v 1.3 2011/12/16 11:05:24 asau Exp $
--- nmbd/nmbd.c.orig 2010-10-07 16:41:16.000000000 +0000
+++ nmbd/nmbd.c
@@ -916,6 +916,10 @@ static bool open_sockets(bool isdaemon,
mkdir(lp_lockdir(), 0755);
}
+ if (!directory_exist(lp_statedir())) {
+ mkdir(lp_statedir(), 0755);
+ }
+
pidfile_create("nmbd");
if (!NT_STATUS_IS_OK(reinit_after_fork(nmbd_messaging_context(),
|