$NetBSD: patch-bp,v 1.1.1.1 2011/12/15 22:23:24 asau Exp $

--- smbd/server.c.orig	2009-09-30 21:21:56.000000000 +0900
+++ smbd/server.c
@@ -1008,6 +1008,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");
 
