git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
328afb8
)
ntvfs: Avoid passing lp_ctx to tdb_wrap_open in py_wrap_setxattr
author
Volker Lendecke
<vl@samba.org>
Wed, 26 Mar 2014 14:19:16 +0000
(14:19 +0000)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/source4/ntvfs/posix/python/pyposix_eadb.c
b/source4/ntvfs/posix/python/pyposix_eadb.c
index d891a2765c2f57b2a7248f8d62275afa45a03e73..c04d329f141e1a5bedc21d10566440030029f08a 100644
(file)
--- 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);