summaryrefslogtreecommitdiff
path: root/net/samba/patches/patch-bo
blob: 76b39f8cf67f19fe42d4f4c6196365bf011a19fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-bo,v 1.3 2006/04/01 04:55:35 jlam Exp $

--- nmbd/nmbd.c.orig	2006-01-24 18:46:38.000000000 -0500
+++ nmbd/nmbd.c
@@ -773,6 +773,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);