summaryrefslogtreecommitdiff
path: root/net/samba/patches/patch-bi
blob: 2be27d06af0fe31b55a3e42022ddbabe23c4443d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-bi,v 1.4.6.1 2007/11/16 15:19:26 ghen Exp $

--- lib/sharesec.c.orig	2007-03-01 13:54:29.000000000 +0900
+++ lib/sharesec.c
@@ -47,10 +47,10 @@ BOOL share_info_db_init(void)
 		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;
 	}