From: Volker Lendecke Date: Tue, 17 Apr 2018 14:20:02 +0000 (+0200) Subject: libcli: Call dbwrap_local_open with the correct tdb_flags X-Git-Tag: ldb-1.4.0~557 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca6efa96f769a2106f754e332c347ee41d3fc447;p=thirdparty%2Fsamba.git libcli: Call dbwrap_local_open with the correct tdb_flags Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/libcli/auth/schannel_state_tdb.c b/libcli/auth/schannel_state_tdb.c index 4b02261663a..15554b2ed48 100644 --- a/libcli/auth/schannel_state_tdb.c +++ b/libcli/auth/schannel_state_tdb.c @@ -42,20 +42,21 @@ struct db_context *open_schannel_session_store(TALLOC_CTX *mem_ctx, { struct db_context *db_sc = NULL; char *fname = lpcfg_private_db_path(mem_ctx, lp_ctx, "schannel_store"); - int hash_size; + int hash_size, tdb_flags; if (!fname) { return NULL; } hash_size = lpcfg_tdb_hash_size(lp_ctx, fname); + tdb_flags = lpcfg_tdb_flags(lp_ctx, TDB_CLEAR_IF_FIRST|TDB_NOSYNC); db_sc = dbwrap_local_open( mem_ctx, lp_ctx, fname, hash_size, - TDB_CLEAR_IF_FIRST|TDB_NOSYNC, + tdb_flags, O_RDWR|O_CREAT, 0600, DBWRAP_LOCK_ORDER_NONE,