diff options
author | Pádraig Brady <P@draigBrady.com> | 2010-06-10 15:12:48 +0100 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2010-08-10 09:35:20 -0600 |
commit | 91fd3b18b755b77c4bb3f7556ddedb055c16c834 (patch) | |
tree | 63c2df4c9ffcc29c11ddba644f5cbbd466325850 /lib/copy-acl.c | |
parent | c7d2ab945f0ecf9ec6e0182186ab5e8c12783f4a (diff) | |
download | gnulib-91fd3b18b755b77c4bb3f7556ddedb055c16c834.tar.gz |
copy-acl: ignore ENOTSUP on HP-UX
Fixes Coreutils bug 6053.
* lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
so that it is available for HP-UX.
* lib/copy-acl.c (qcopy_acl): Use it.
Reported by Patrick M. Callahan.
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'lib/copy-acl.c')
-rw-r--r-- | lib/copy-acl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/copy-acl.c b/lib/copy-acl.c index c047913d42..421907de99 100644 --- a/lib/copy-acl.c +++ b/lib/copy-acl.c @@ -420,7 +420,7 @@ qcopy_acl (const char *src_name, int source_desc, const char *dst_name, if (count < 0) { - if (errno == ENOSYS || errno == EOPNOTSUPP) + if (ACL_NOT_WELL_SUPPORTED (errno)) { count = 0; break; @@ -455,7 +455,7 @@ qcopy_acl (const char *src_name, int source_desc, const char *dst_name, { int saved_errno = errno; - if (errno == ENOSYS || errno == EOPNOTSUPP) + if (ACL_NOT_WELL_SUPPORTED (errno)) { struct stat source_statbuf; |