openat: detect Solaris fchownat bug
[pspp] / lib / file-has-acl.c
index 4ad57107c6de65424179c2e4252c3260800d2a4d..4dda3ade2aca725518b302dadc88628e588bc2c6 100644 (file)
@@ -260,7 +260,7 @@ acl_nontrivial (struct acl *a)
   return (acl_last (a) != a->acl_ext ? 1 : 0);
 }
 
-# if HAVE_ACLX_GET /* newer AIX */
+# if HAVE_ACLX_GET && defined ACL_AIX_WIP /* newer AIX */
 
 /* Return 1 if the given ACL is non-trivial.
    Return 0 if it is trivial, i.e. equivalent to a simple stat() mode.  */
@@ -354,7 +354,7 @@ file_has_acl (char const *name, struct stat const *sb)
              /* On Linux, FreeBSD, IRIX, acl_get_file (name, ACL_TYPE_ACCESS)
                 and acl_get_file (name, ACL_TYPE_DEFAULT) on a directory
                 either both succeed or both fail; it depends on the
-                filesystem.  Therefore there is no point in making the second
+                file system.  Therefore there is no point in making the second
                 call if the first one already failed.  */
              if (ret == 0 && S_ISDIR (sb->st_mode))
                {
@@ -529,7 +529,7 @@ file_has_acl (char const *name, struct stat const *sb)
             Repeat.  */
        }
 
-# elif HAVE_ACLX_GET /* AIX */
+# elif HAVE_ACLX_GET && defined ACL_AIX_WIP /* AIX */
 
       acl_type_t type;
       char aclbuf[1024];