s4-xattr: Use libreplace xattr functions directly
[sharpe/samba-autobuild/.git] / source4 / ntvfs / posix / python / pyxattr_native.c
index caec115c053410ae1ae964ac43e56363f14afc5b..4f610a01f5ffa41f12558e3f0061c81835aa6ca7 100644 (file)
@@ -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);