From 0b59f05de794d919eb60210072f10f009d1c396c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 26 Mar 2014 14:19:16 +0000 Subject: ntvfs: Avoid passing lp_ctx to tdb_wrap_open in py_wrap_getxattr Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source4/ntvfs/posix/python/pyposix_eadb.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source4/ntvfs/posix') diff --git a/source4/ntvfs/posix/python/pyposix_eadb.c b/source4/ntvfs/posix/python/pyposix_eadb.c index 48310cc0168..d891a2765c2 100644 --- a/source4/ntvfs/posix/python/pyposix_eadb.c +++ b/source4/ntvfs/posix/python/pyposix_eadb.c @@ -83,8 +83,11 @@ static PyObject *py_wrap_getxattr(PyObject *self, PyObject *args) return NULL; mem_ctx = talloc_new(NULL); - eadb = tdb_wrap_open(mem_ctx, tdbname, 50000, - TDB_DEFAULT, O_RDWR|O_CREAT, 0600, py_default_loadparm_context(mem_ctx)); + eadb = tdb_wrap_open_( + mem_ctx, tdbname, 50000, + lpcfg_tdb_flags(py_default_loadparm_context(mem_ctx), + TDB_DEFAULT), + O_RDWR|O_CREAT, 0600); if (eadb == NULL) { PyErr_SetFromErrno(PyExc_IOError); talloc_free(mem_ctx); -- cgit