summaryrefslogtreecommitdiff
path: root/net/samba/patches/patch-bo
blob: 83505ee7fb3c258c01253ac2c71577b1cd1f0cd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-bo,v 1.4 2007/10/28 07:28:49 taca Exp $

--- nmbd/nmbd.c.orig	2007-03-01 13:54:45.000000000 +0900
+++ nmbd/nmbd.c
@@ -743,6 +743,10 @@ static BOOL open_sockets(BOOL isdaemon, 
 		mkdir(lp_lockdir(), 0755);
 	}
 
+	if (!directory_exist(lp_statedir(), NULL)) {
+		mkdir(lp_statedir(), 0755);
+	}
+
 	pidfile_create("nmbd");
 	message_init();
 	message_register(MSG_FORCE_ELECTION, nmbd_message_election, NULL);