summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-03-26 14:28:57 +0000
committerJeremy Allison <jra@samba.org>2014-03-31 22:52:13 +0200
commit801b947e12530d9756aa687056362d497f198491 (patch)
tree72c794e0fc5a2228ff5df9cedac2ee4b3e35e3c2
parent12b8df1ba277ffc8e48b4c96aa4e48bf36e4e220 (diff)
downloadsamba-801b947e12530d9756aa687056362d497f198491.tar.gz
samba-801b947e12530d9756aa687056362d497f198491.tar.xz
samba-801b947e12530d9756aa687056362d497f198491.zip
vfs: Avoid passing lp_ctx to tdb_wrap_open in posix_eadb_init
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/modules/vfs_posix_eadb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/modules/vfs_posix_eadb.c b/source3/modules/vfs_posix_eadb.c
index d188780b29..7f65beafc4 100644
--- a/source3/modules/vfs_posix_eadb.c
+++ b/source3/modules/vfs_posix_eadb.c
@@ -256,9 +256,9 @@ static bool posix_eadb_init(int snum, struct tdb_wrap **p_db)
lp_ctx = loadparm_init_s3(NULL, loadparm_s3_helpers());
become_root();
- db = tdb_wrap_open(NULL, eadb, 50000,
- TDB_DEFAULT, O_RDWR|O_CREAT, 0600,
- lp_ctx);
+ db = tdb_wrap_open_(NULL, eadb, 50000,
+ lpcfg_tdb_flags(lp_ctx, TDB_DEFAULT),
+ O_RDWR|O_CREAT, 0600);
unbecome_root();
talloc_unlink(NULL, lp_ctx);