diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-12-18 23:04:21 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-12-18 23:13:00 -0500 |
commit | 4238b3c8227b79692d54536e75912403e466491a (patch) | |
tree | 152cfbcf826834580cf32a15b4194b3026983264 /util.c | |
parent | 186b639f0ed338e2b8348420faba53d1aa22bb41 (diff) | |
download | bfs-4238b3c8227b79692d54536e75912403e466491a.tar.xz |
util: Support systems that don't define the POSIX.1e ACL tag values
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |