$NetBSD: patch-bp,v 1.2 2006/01/02 22:33:36 jlam Exp $ --- smbd/server.c.orig 2005-10-17 22:44:57.000000000 -0400 +++ smbd/server.c @@ -866,6 +866,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");