summaryrefslogtreecommitdiff
path: root/net/samba/patches/patch-bi
blob: 59305cfb427106d9e5dc7fd088d388594a504dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-bi,v 1.3 2006/04/01 04:55:35 jlam Exp $

--- rpc_server/srv_srvsvc_nt.c.orig	2006-01-24 18:46:36.000000000 -0500
+++ rpc_server/srv_srvsvc_nt.c
@@ -158,10 +158,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;
 	}