diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-06-01 13:41:46 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-06-02 02:13:49 +0200 |
commit | f9b7cd53b9fe253b122cb545c2dd1be073ab0592 (patch) | |
tree | ffd0205757c031bce2d6d42b1cf6f173f829440a /source4/ntvfs/posix/python/pyxattr_native.c | |
parent | c290cdb9349220ba70b54143e1432da0230e2cee (diff) | |
download | samba-f9b7cd53b9fe253b122cb545c2dd1be073ab0592.tar.gz samba-f9b7cd53b9fe253b122cb545c2dd1be073ab0592.tar.bz2 samba-f9b7cd53b9fe253b122cb545c2dd1be073ab0592.zip |
s4-xattr: Use libreplace xattr functions directly
Diffstat (limited to 'source4/ntvfs/posix/python/pyxattr_native.c')
-rw-r--r-- | source4/ntvfs/posix/python/pyxattr_native.c | 8 |
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); |