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/xattr_system.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/xattr_system.c')
-rw-r--r-- | source4/ntvfs/posix/xattr_system.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source4/ntvfs/posix/xattr_system.c b/source4/ntvfs/posix/xattr_system.c index f22c0e9ea4..ebb2010e38 100644 --- a/source4/ntvfs/posix/xattr_system.c +++ b/source4/ntvfs/posix/xattr_system.c @@ -21,7 +21,6 @@ #include "includes.h" #include "vfs_posix.h" -#include "../lib/util/wrap_xattr.h" /* pull a xattr as a blob, from either a file or a file descriptor @@ -43,9 +42,9 @@ NTSTATUS pull_xattr_blob_system(struct pvfs_state *pvfs, again: if (fd != -1) { - ret = wrap_fgetxattr(fd, attr_name, blob->data, estimated_size); + ret = fgetxattr(fd, attr_name, blob->data, estimated_size); } else { - ret = wrap_getxattr(fname, attr_name, blob->data, estimated_size); + ret = getxattr(fname, attr_name, blob->data, estimated_size); } if (ret == -1 && errno == ERANGE) { estimated_size *= 2; @@ -104,9 +103,9 @@ NTSTATUS push_xattr_blob_system(struct pvfs_state *pvfs, int ret; if (fd != -1) { - ret = wrap_fsetxattr(fd, attr_name, blob->data, blob->length, 0); + ret = fsetxattr(fd, attr_name, blob->data, blob->length, 0); } else { - ret = wrap_setxattr(fname, attr_name, blob->data, blob->length, 0); + ret = setxattr(fname, attr_name, blob->data, blob->length, 0); } if (ret == -1) { return pvfs_map_errno(pvfs, errno); @@ -125,9 +124,9 @@ NTSTATUS delete_xattr_system(struct pvfs_state *pvfs, const char *attr_name, int ret; if (fd != -1) { - ret = wrap_fremovexattr(fd, attr_name); + ret = fremovexattr(fd, attr_name); } else { - ret = wrap_removexattr(fname, attr_name); + ret = removexattr(fname, attr_name); } if (ret == -1) { return pvfs_map_errno(pvfs, errno); |