$NetBSD: patch-bp,v 1.4 2007/10/28 07:28:49 taca Exp $

--- smbd/server.c.orig	2007-09-11 23:17:48.000000000 +0900
+++ smbd/server.c
@@ -1010,6 +1010,9 @@ extern void build_options(BOOL screen);
 	if (!directory_exist(lp_lockdir(), NULL))
 		mkdir(lp_lockdir(), 0755);
 
+	if (!directory_exist(lp_statedir(), NULL))
+		mkdir(lp_statedir(), 0755);
+
 	if (is_daemon)
 		pidfile_create("smbd");
 
