copy-acl: enhance Solaris ACL error handling
authorBen Walton <bwalton@artsci.utoronto.ca>
Fri, 12 Feb 2010 13:32:00 +0000 (08:32 -0500)
committerIan Beckwith <ianb@erislabs.net>
Mon, 8 Mar 2010 02:36:17 +0000 (02:36 +0000)
commit12e638f9b0c9eb49103a76ee156f50426bb8558b
tree2ea5befd998d1b100e21405614798a6d25430fd3
parentf824ab2c16376d9ca57f7f714c4cb5c3e9970c1e
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>
(cherry picked from commit ca156dd87d41d9dbd0eb90f4d8b7a2a73c78a47e)
ChangeLog
lib/copy-acl.c
lib/set-mode-acl.c