summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/python/pyxattr_native.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ntvfs/posix/python/pyxattr_native.c')
-rw-r--r--source4/ntvfs/posix/python/pyxattr_native.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/ntvfs/posix/python/pyxattr_native.c b/source4/ntvfs/posix/python/pyxattr_native.c
index caec115c05..4f610a01f5 100644
--- a/source4/ntvfs/posix/python/pyxattr_native.c
+++ b/source4/ntvfs/posix/python/pyxattr_native.c
@@ -21,7 +21,7 @@
#include <Python.h>
#include "includes.h"
#include "librpc/ndr/libndr.h"
-#include "lib/util/wrap_xattr.h"
+#include "system/filesys.h"
void initxattr_native(void);
@@ -46,7 +46,7 @@ static PyObject *py_wrap_setxattr(PyObject *self, PyObject *args)
return NULL;
blob.length = blobsize;
- ret = wrap_setxattr(filename, attribute, blob.data, blob.length, 0);
+ ret = setxattr(filename, attribute, blob.data, blob.length, 0);
if( ret < 0 ) {
if (errno == ENOTSUP) {
PyErr_SetFromErrno(PyExc_IOError);
@@ -68,7 +68,7 @@ static PyObject *py_wrap_getxattr(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "ss", &filename, &attribute))
return NULL;
mem_ctx = talloc_new(NULL);
- len = wrap_getxattr(filename,attribute,NULL,0);
+ len = getxattr(filename,attribute,NULL,0);
if( len < 0 ) {
if (errno == ENOTSUP) {
PyErr_SetFromErrno(PyExc_IOError);
@@ -80,7 +80,7 @@ static PyObject *py_wrap_getxattr(PyObject *self, PyObject *args)
}
/* check length ... */
buf = talloc_zero_array(mem_ctx, char, len);
- len = wrap_getxattr(filename, attribute, buf, len);
+ len = getxattr(filename, attribute, buf, len);
if( len < 0 ) {
if (errno == ENOTSUP) {
PyErr_SetFromErrno(PyExc_IOError);