$NetBSD: patch-bp,v 1.1 2005/11/14 08:05:28 jlam Exp $ --- smbd/server.c.orig 2005-10-12 13:03:25.000000000 -0400 +++ smbd/server.c @@ -867,6 +867,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");