svn commit: samba r10054 - in branches/SAMBA_3_0/source/libsmb: .
jra at samba.org
jra at samba.org
Tue Sep 6 16:52:26 GMT 2005
Author: jra
Date: 2005-09-06 16:52:25 +0000 (Tue, 06 Sep 2005)
New Revision: 10054
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10054
Log:
Actually use the given db path (:-)
Jeremy.
Modified:
branches/SAMBA_3_0/source/libsmb/smb_share_modes.c
Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/smb_share_modes.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/smb_share_modes.c 2005-09-06 16:22:26 UTC (rev 10053)
+++ branches/SAMBA_3_0/source/libsmb/smb_share_modes.c 2005-09-06 16:52:25 UTC (rev 10054)
@@ -36,7 +36,11 @@
memset(smb_db, '\0', sizeof(struct smbdb_ctx));
- smb_db->smb_tdb = tdb_open_log(lock_path("locking.tdb"),
+ if (!db_path) {
+ db_path = lock_path("locking.tdb");
+ }
+
+ smb_db->smb_tdb = tdb_open_log(db_path,
0, TDB_DEFAULT|TDB_CLEAR_IF_FIRST,
O_RDWR|O_CREAT,
0644);
More information about the samba-cvs
mailing list