diff options
author | Volker Lendecke <vl@samba.org> | 2014-03-26 14:19:16 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-03-31 22:52:13 +0200 |
commit | f995c6e6d4bfe4a50ca0017c722bdfb329121958 (patch) | |
tree | 4dfb5ede89955ea9ed03741d776a54c812cc0850 /source4/ntvfs | |
parent | 328afb8d3e90f5d516dbe3a21ee80c2bd336a66d (diff) | |
download | samba-f995c6e6d4bfe4a50ca0017c722bdfb329121958.tar.gz samba-f995c6e6d4bfe4a50ca0017c722bdfb329121958.tar.xz samba-f995c6e6d4bfe4a50ca0017c722bdfb329121958.zip |
ntvfs: Avoid passing lp_ctx to tdb_wrap_open in py_wrap_setxattr
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/python/pyposix_eadb.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/ntvfs/posix/python/pyposix_eadb.c b/source4/ntvfs/posix/python/pyposix_eadb.c index d891a2765c2..c04d329f141 100644 --- a/source4/ntvfs/posix/python/pyposix_eadb.c +++ b/source4/ntvfs/posix/python/pyposix_eadb.c @@ -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); |