changeset 15577:15d6c13d7aae

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.
author Bruno Haible <bruno@clisp.org>
date Tue, 06 Sep 2011 11:32:18 +0200
parents 5108c363f278
children 79ba5f83de2a
files ChangeLog lib/file-has-acl.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/file-has-acl.c
+++ b/lib/file-has-acl.c
@@ -746,6 +746,8 @@
           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)