summaryrefslogtreecommitdiffstats
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-03-26 14:17:07 +0000
committerJeremy Allison <jra@samba.org>2014-03-31 22:52:13 +0200
commit3a0ea071ad060c48284e66e9503c8e528a7b11d3 (patch)
treefe5e3b45fd556334d7d88bd40706e9b2440c3dcb /source4/ntvfs
parent2ae3565a55daee5a62108172075fc419c6f5450b (diff)
downloadsamba-3a0ea071ad060c48284e66e9503c8e528a7b11d3.tar.gz
samba-3a0ea071ad060c48284e66e9503c8e528a7b11d3.tar.xz
samba-3a0ea071ad060c48284e66e9503c8e528a7b11d3.zip
ntvfs: Avoid passing lp_ctx to tdb_wrap_open in pvfs_setup_options
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/posix/vfs_posix.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/ntvfs/posix/vfs_posix.c b/source4/ntvfs/posix/vfs_posix.c
index afa3f23b84d..a9ba44f20bf 100644
--- a/source4/ntvfs/posix/vfs_posix.c
+++ b/source4/ntvfs/posix/vfs_posix.c
@@ -120,9 +120,10 @@ static void pvfs_setup_options(struct pvfs_state *pvfs)
/* allow xattrs to be stored in a external tdb */
eadb = share_string_option(pvfs, scfg, PVFS_EADB, NULL);
if (eadb != NULL) {
- pvfs->ea_db = tdb_wrap_open(pvfs, eadb, 50000,
- TDB_DEFAULT, O_RDWR|O_CREAT, 0600,
- pvfs->ntvfs->ctx->lp_ctx);
+ pvfs->ea_db = tdb_wrap_open_(
+ pvfs, eadb, 50000,
+ lpcfg_tdb_flags(pvfs->ntvfs->ctx->lp_ctx, TDB_DEFAULT),
+ O_RDWR|O_CREAT, 0600);
TALLOC_FREE(eadb);
if (pvfs->ea_db != NULL) {
pvfs->flags |= PVFS_FLAG_XATTR_ENABLE;