$NetBSD: patch-bp,v 1.3.12.1 2007/11/16 15:19:26 ghen 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");