From: Stefan Metzmacher Date: Tue, 1 Apr 2008 09:26:29 +0000 (+0200) Subject: account_pol: use db_open_trans() X-Git-Tag: samba-3.3.0pre1~2953 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=888c2802b7bda92baae2dd0c1596f5e04bc3bfaa;p=thirdparty%2Fsamba.git account_pol: use db_open_trans() metze --- diff --git a/source/lib/account_pol.c b/source/lib/account_pol.c index 4e36760c4c4..067f3468836 100644 --- a/source/lib/account_pol.c +++ b/source/lib/account_pol.c @@ -212,12 +212,12 @@ bool init_account_policy(void) return True; } - db = db_open(NULL, state_path("account_policy.tdb"), 0, TDB_DEFAULT, + db = db_open_trans(NULL, state_path("account_policy.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600); if (db == NULL) { /* the account policies files does not exist or open * failed, try to create a new one */ - db = db_open(NULL, state_path("account_policy.tdb"), 0, + db = db_open_trans(NULL, state_path("account_policy.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600); if (db == NULL) { DEBUG(0,("Failed to open account policy database\n"));