summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util.c4
1 files changed, 4 insertions, 0 deletions
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);