From 4238b3c8227b79692d54536e75912403e466491a Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 18 Dec 2018 23:04:21 -0500 Subject: util: Support systems that don't define the POSIX.1e ACL tag values --- util.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util.c') diff --git a/util.c b/util.c index 359a5cd..dd11e5d 100644 --- a/util.c +++ b/util.c @@ -449,6 +449,7 @@ static bool bfs_check_acl_type(const char *path, acl_type_t type) { for (int status = acl_get_entry(acl, ACL_FIRST_ENTRY, &entry); status > 0; status = acl_get_entry(acl, ACL_NEXT_ENTRY, &entry)) { +#if defined(ACL_USER_OBJ) && defined(ACL_GROUP_OBJ) && defined(ACL_OTHER) acl_tag_t tag; if (acl_get_tag_type(entry, &tag) != 0) { continue; @@ -457,6 +458,9 @@ static bool bfs_check_acl_type(const char *path, acl_type_t type) { ret = true; break; } +#else + return true; +#endif } acl_free(acl); -- cgit v1.2.3