diff options
author | Nathan Scott <nathans@sgi.com> | 2004-01-14 02:32:27 +0000 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2004-01-14 02:32:27 +0000 |
commit | 593b48b7d98ffc2973cd43bf64b7a16f259fcfa0 (patch) | |
tree | 6a284c7d1e1c15ff0ce66dd8542116e750ed10c0 /libattr/attr_copy_file.c | |
parent | af582de39f09f7dfa9ee8a0c4a5e14034e1b9428 (diff) | |
download | attr-593b48b7d98ffc2973cd43bf64b7a16f259fcfa0.tar.gz |
Extended attribute updates mainly from Andreas Gruenbacher.
Diffstat (limited to 'libattr/attr_copy_file.c')
-rw-r--r-- | libattr/attr_copy_file.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libattr/attr_copy_file.c b/libattr/attr_copy_file.c index ad0045d..858e70a 100644 --- a/libattr/attr_copy_file.c +++ b/libattr/attr_copy_file.c @@ -71,7 +71,7 @@ attr_copy_file(const char *src_path, const char *dst_path, if (check == NULL) check = attr_copy_check_permissions; - size = listxattr (src_path, NULL, 0); + size = llistxattr (src_path, NULL, 0); if (size < 0) { if (errno != ENOSYS && errno != ENOTSUP) { const char *qpath = quote (ctx, src_path); @@ -87,7 +87,7 @@ attr_copy_file(const char *src_path, const char *dst_path, ret = -1; goto getout; } - size = listxattr (src_path, names, size); + size = llistxattr (src_path, names, size); if (size < 0) { const char *qpath = quote (ctx, src_path); error (ctx, _("listing attributes of %s"), qpath); @@ -107,7 +107,7 @@ attr_copy_file(const char *src_path, const char *dst_path, if (!*name || !check(name, ctx)) continue; - size = getxattr (src_path, name, NULL, 0); + size = lgetxattr (src_path, name, NULL, 0); if (size < 0) { const char *qpath = quote (ctx, src_path); const char *qname = quote (ctx, name); @@ -124,7 +124,7 @@ attr_copy_file(const char *src_path, const char *dst_path, error (ctx, ""); ret = -1; } - size = getxattr (src_path, name, value, size); + size = lgetxattr (src_path, name, value, size); if (size < 0) { const char *qpath = quote (ctx, src_path); const char *qname = quote (ctx, name); @@ -134,7 +134,7 @@ attr_copy_file(const char *src_path, const char *dst_path, quote_free (ctx, qpath); ret = -1; } - if (setxattr (dst_path, name, value, size, 0) != 0) + if (lsetxattr (dst_path, name, value, size, 0) != 0) { const char *qpath = quote (ctx, dst_path); if (errno == ENOSYS) { |