diff options
author | Jeremy Allison <jra@samba.org> | 2005-09-06 16:52:25 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:03:31 -0500 |
commit | dcf4bc5e7fd8af2b9e5d8f53b3d65004cb4974ed (patch) | |
tree | d72ae0b6ed711a77679592c0138fbf9e1ee06c7e /source3 | |
parent | 027253bdb8cdfbbc7f13f4d3c6a9fbda37c78a45 (diff) | |
download | samba-dcf4bc5e7fd8af2b9e5d8f53b3d65004cb4974ed.tar.gz samba-dcf4bc5e7fd8af2b9e5d8f53b3d65004cb4974ed.tar.bz2 samba-dcf4bc5e7fd8af2b9e5d8f53b3d65004cb4974ed.zip |
r10054: Actually use the given db path (:-)
Jeremy.
(This used to be commit ac7cf320dfa2fd980188e72c9b8baa726c5cdaa1)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/smb_share_modes.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/libsmb/smb_share_modes.c b/source3/libsmb/smb_share_modes.c index 0ba68aed06..180b5b4bfd 100644 --- a/source3/libsmb/smb_share_modes.c +++ b/source3/libsmb/smb_share_modes.c @@ -36,7 +36,11 @@ struct smbdb_ctx *smb_share_mode_db_open(const char *db_path) 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); |