diff options
author | Michael Adam <obnox@samba.org> | 2014-01-27 16:38:25 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-02-07 16:06:07 +0100 |
commit | 7e766a0a8ade1f018015684c22bda82595a33d38 (patch) | |
tree | 4509a8c1ad30a5f509f6cbbad094e7d975298844 /libcli | |
parent | e4fbaadb5cadaa584f455d624eafe706703cda1a (diff) | |
download | samba-7e766a0a8ade1f018015684c22bda82595a33d38.tar.gz samba-7e766a0a8ade1f018015684c22bda82595a33d38.tar.xz samba-7e766a0a8ade1f018015684c22bda82595a33d38.zip |
dbwrap: add dbwrap_flags argument to dbwrap_local_open()
To be consistent with db_open() and prepare for future
possible extensions.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/auth/netlogon_creds_cli.c | 3 | ||||
-rw-r--r-- | libcli/auth/schannel_state_tdb.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c index 88893ad7d3a..d73335da1d6 100644 --- a/libcli/auth/netlogon_creds_cli.c +++ b/libcli/auth/netlogon_creds_cli.c @@ -227,7 +227,8 @@ NTSTATUS netlogon_creds_cli_open_global_db(struct loadparm_context *lp_ctx) fname, 0, TDB_CLEAR_IF_FIRST|TDB_INCOMPATIBLE_HASH, O_RDWR|O_CREAT, - 0600, DBWRAP_LOCK_ORDER_2); + 0600, DBWRAP_LOCK_ORDER_2, + DBWRAP_FLAG_NONE); if (global_db == NULL) { DEBUG(0,("netlogon_creds_cli_open_global_db: Failed to open %s - %s\n", fname, strerror(errno))); diff --git a/libcli/auth/schannel_state_tdb.c b/libcli/auth/schannel_state_tdb.c index 6669b465b73..2219540b1c6 100644 --- a/libcli/auth/schannel_state_tdb.c +++ b/libcli/auth/schannel_state_tdb.c @@ -49,7 +49,7 @@ struct db_context *open_schannel_session_store(TALLOC_CTX *mem_ctx, db_sc = dbwrap_local_open(mem_ctx, lp_ctx, fname, 0, TDB_CLEAR_IF_FIRST|TDB_NOSYNC, O_RDWR|O_CREAT, - 0600, 0); + 0600, 0, DBWRAP_FLAG_NONE); if (!db_sc) { DEBUG(0,("open_schannel_session_store: Failed to open %s - %s\n", |