From: Stefan Metzmacher Date: Fri, 28 Mar 2008 07:27:11 +0000 (+0100) Subject: sharesec: use db_open_trans() X-Git-Tag: samba-3.3.0pre1~2962 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c59142ccc46616c10b98c51601361f203d542d6;p=thirdparty%2Fsamba.git sharesec: use db_open_trans() metze --- 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) ));