summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-28 08:27:11 +0100
committerStefan Metzmacher <metze@samba.org>2008-04-01 14:04:21 +0200
commit2fe572d0438fd21f620427b793b65c54d08c7c74 (patch)
tree9e9ace52686f774185a15a37a8f8519dcc963c8e /source3
parentf8c569e06690453f842607a6888cb570e090001c (diff)
downloadsamba-2fe572d0438fd21f620427b793b65c54d08c7c74.tar.gz
samba-2fe572d0438fd21f620427b793b65c54d08c7c74.tar.bz2
samba-2fe572d0438fd21f620427b793b65c54d08c7c74.zip
sharesec: use db_open_trans()
metze (This used to be commit 1c59142ccc46616c10b98c51601361f203d542d6)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/sharesec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c
index a2aed7921c..3d9e608387 100644
--- a/source3/lib/sharesec.c
+++ b/source3/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) ));