summaryrefslogtreecommitdiff
path: root/net/samba/patches/patch-bi
blob: c517a21bb5fc4b49e0d21f6ac241e8f81b62471d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-bi,v 1.2 2006/01/02 22:33:36 jlam Exp $

--- rpc_server/srv_srvsvc_nt.c.orig	2005-12-14 07:45:50.000000000 -0500
+++ rpc_server/srv_srvsvc_nt.c
@@ -156,10 +156,10 @@ BOOL share_info_db_init(void)
  
 	if (share_tdb && local_pid == sys_getpid())
 		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) ));
+			state_path("share_info.tdb"), strerror(errno) ));
 		return False;
 	}