copy-acl: enhance Solaris ACL error handling
authorBen Walton <bwalton@artsci.utoronto.ca>
Fri, 12 Feb 2010 13:32:00 +0000 (08:32 -0500)
committerEric Blake <eblake@redhat.com>
Tue, 2 Mar 2010 15:40:14 +0000 (08:40 -0700)
commitca156dd87d41d9dbd0eb90f4d8b7a2a73c78a47e
tree945a52b521c29929bdc4fd94e9fab0a235f7a5da
parent88baa1ed437db0f062e49b87cff59002ec8f7ab2
copy-acl: enhance Solaris ACL error handling

Gracefully handle EOPNOTSUPP in qcopy_acl and qset_acl.  These
functions, as used in coreutils, were causing the test suite to fail
on Solaris 8 i386 with ZFS-backed NFSv3 mounts.  The failures included
errors such as:

FAIL: cp/backup-dir
cp: preserving permissions for `y/x': Operation not supported on
transport endpoint

* lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
* lib/set-mode-acl.c (qset_acl): Likewise.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/copy-acl.c
lib/set-mode-acl.c