mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
ntvfs: Avoid passing lp_ctx to tdb_wrap_open in py_wrap_getxattr
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
3a0ea071ad
commit
0b59f05de7
@ -83,8 +83,11 @@ static PyObject *py_wrap_getxattr(PyObject *self, PyObject *args)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
mem_ctx = talloc_new(NULL);
|
mem_ctx = talloc_new(NULL);
|
||||||
eadb = tdb_wrap_open(mem_ctx, tdbname, 50000,
|
eadb = tdb_wrap_open_(
|
||||||
TDB_DEFAULT, O_RDWR|O_CREAT, 0600, py_default_loadparm_context(mem_ctx));
|
mem_ctx, tdbname, 50000,
|
||||||
|
lpcfg_tdb_flags(py_default_loadparm_context(mem_ctx),
|
||||||
|
TDB_DEFAULT),
|
||||||
|
O_RDWR|O_CREAT, 0600);
|
||||||
if (eadb == NULL) {
|
if (eadb == NULL) {
|
||||||
PyErr_SetFromErrno(PyExc_IOError);
|
PyErr_SetFromErrno(PyExc_IOError);
|
||||||
talloc_free(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
|
Reference in New Issue
Block a user