acl: Update for AIX >= 5.3 with NFS.
[gnulib.git] / lib / file-has-acl.c
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)