summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-12-18 23:04:21 -0500
committerTavian Barnes <tavianator@tavianator.com>2018-12-18 23:13:00 -0500
commit4238b3c8227b79692d54536e75912403e466491a (patch)
tree152cfbcf826834580cf32a15b4194b3026983264
parent186b639f0ed338e2b8348420faba53d1aa22bb41 (diff)
downloadbfs-4238b3c8227b79692d54536e75912403e466491a.tar.xz
util: Support systems that don't define the POSIX.1e ACL tag values
-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);