acl: Update for AIX >= 5.3 with NFS.
authorBruno Haible <bruno@clisp.org>
Tue, 6 Sep 2011 09:32:18 +0000 (11:32 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 6 Sep 2011 09:32:18 +0000 (11:32 +0200)
* lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
ENOSYS as no ACL.

ChangeLog
lib/file-has-acl.c

index cfdb8f2..5d5a478 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-09-06  Bruno Haible  <bruno@clisp.org>
 
+       acl: Update for AIX >= 5.3 with NFS.
+       * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
+       ENOSYS as no ACL.
+
        acl: Fix a test failure on AIX >= 5.3 with NFS.
        * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
        as no ACL.
index 892b539..ddae4fe 100644 (file)
@@ -746,6 +746,8 @@ file_has_acl (char const *name, struct stat const *sb)
           type.u64 = ACL_ANY;
           if (aclx_get (name, 0, &type, aclbuf, &aclsize, &mode) >= 0)
             break;
+          if (errno == ENOSYS)
+            return 0;
           if (errno != ENOSPC)
             {
               if (acl != aclbuf)