vfs: Avoid passing lp_ctx to tdb_wrap_open in posix_eadb_init
authorVolker Lendecke <vl@samba.org>
Wed, 26 Mar 2014 14:28:57 +0000 (14:28 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 31 Mar 2014 20:52:13 +0000 (22:52 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_posix_eadb.c

index d188780b295a1fbc2af93b6d7a7ae69f957269d9..7f65beafc489852a8f88a5e66b5f7be28415c36e 100644 (file)
@@ -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);