changeset 10185:22b6b32738ea

add more guards around definition of ACE_-related code * lib/file-has-acl.c (acl_ace_nontrivial): Define only if ALLOW and ACE_OWNER are also defined.
author Jim Meyering <meyering@redhat.com>
date Mon, 09 Jun 2008 11:28:55 +0200
parents 9da2345fe8f6
children bef6a09c05f1
files lib/file-has-acl.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/file-has-acl.c	Sun Jun 08 23:55:37 2008 +0200
+++ b/lib/file-has-acl.c	Mon Jun 09 11:28:55 2008 +0200
@@ -146,7 +146,7 @@
   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.