ntvfs: Avoid passing lp_ctx to tdb_wrap_open in py_wrap_setxattr
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 d891a2765c2f57b2a7248f8d62275afa45a03e73..c04d329f141e1a5bedc21d10566440030029f08a 100644 (file)
@@ -50,9 +50,11 @@ static PyObject *py_wrap_setxattr(PyObject *self, PyObject *args)
 
        blob.length = blobsize;
        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);