$NetBSD: patch-bi,v 1.4 2007/02/11 18:39:04 tron Exp $

--- lib/sharesec.c.orig	2006-04-20 03:29:23.000000000 +0100
+++ lib/sharesec.c	2007-02-11 17:46:13.000000000 +0000
@@ -47,7 +47,7 @@
 		return True;
 	}
 
-	share_tdb = tdb_open_log(lock_path("share_info.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
+	share_tdb = tdb_open_log(state_path("share_info.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
 	if (!share_tdb) {
 		DEBUG(0,("Failed to open share info database %s (%s)\n",
 			lock_path("share_info.tdb"), strerror(errno) ));
