$NetBSD: patch-bp,v 1.3 2006/04/01 04:55:35 jlam Exp $

--- smbd/server.c.orig	2006-01-24 18:46:32.000000000 -0500
+++ smbd/server.c
@@ -868,6 +868,9 @@ 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");
 
