ntvfs: Avoid passing lp_ctx to tdb_wrap_open in py_wrap_getxattr
authorVolker Lendecke <vl@samba.org>
Wed, 26 Mar 2014 14:19:16 +0000 (14:19 +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>
source4/ntvfs/posix/python/pyposix_eadb.c

index 48310cc0168ea92c7108cb8ccdc50e3a38b2e881..d891a2765c2f57b2a7248f8d62275afa45a03e73 100644 (file)
@@ -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);