summaryrefslogtreecommitdiffstats
path: root/source/lib/sharesec.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-28 08:27:11 +0100
committerKarolin Seeger <kseeger@samba.org>2008-04-12 07:53:47 +0200
commit7b5c3fe9a4cc73089f727eeb398f175b19cd749a (patch)
tree4046809156289428df591166e8fd41ac23d6bb13 /source/lib/sharesec.c
parent0c736149eee918ea432d1644c37731f1b007a67e (diff)
downloadsamba-7b5c3fe9a4cc73089f727eeb398f175b19cd749a.tar.gz
samba-7b5c3fe9a4cc73089f727eeb398f175b19cd749a.tar.xz
samba-7b5c3fe9a4cc73089f727eeb398f175b19cd749a.zip
sharesec: use db_open_trans()
metze (cherry picked from commit 1c59142ccc46616c10b98c51601361f203d542d6)
Diffstat (limited to 'source/lib/sharesec.c')
-rw-r--r--source/lib/sharesec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/sharesec.c b/source/lib/sharesec.c
index a2aed7921cf..3d9e6083874 100644
--- a/source/lib/sharesec.c
+++ b/source/lib/sharesec.c
@@ -51,8 +51,8 @@ static bool share_info_db_init(void)
return True;
}
- share_db = db_open(NULL, state_path("share_info.tdb"), 0, TDB_DEFAULT,
- O_RDWR|O_CREAT, 0600);
+ share_db = db_open_trans(NULL, state_path("share_info.tdb"), 0,
+ TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
if (share_db == NULL) {
DEBUG(0,("Failed to open share info database %s (%s)\n",
state_path("share_info.tdb"), strerror(errno) ));