add more guards around definition of ACE_-related code
authorJim Meyering <meyering@redhat.com>
Mon, 9 Jun 2008 09:28:55 +0000 (11:28 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 9 Jun 2008 09:28:55 +0000 (11:28 +0200)
* lib/file-has-acl.c (acl_ace_nontrivial): Define only if
ALLOW and ACE_OWNER are also defined.

lib/file-has-acl.c

index 9589db9..5b851b9 100644 (file)
@@ -146,7 +146,7 @@ acl_nontrivial (int count, aclent_t *entries)
   return 0;
 }
 
-# ifdef ACE_GETACL
+# if defined ACE_GETACL && defined ALLOW && defined ACE_OWNER
 
 /* Test an ACL retrieved with ACE_GETACL.
    Return 1 if the given ACL, consisting of COUNT entries, is non-trivial.