summaryrefslogtreecommitdiffstats
path: root/src/fsade.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-18 16:29:17 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-19 15:50:45 -0400
commit2d4ff1dcd044c09dd6368b6726d53b4f3afcd546 (patch)
treebfa39e8aeb48ea1b0a2955bbd29406efbbccb0c2 /src/fsade.c
parent536075930140c7886c61997be31c41d651f48818 (diff)
downloadbfs-2d4ff1dcd044c09dd6368b6726d53b4f3afcd546.tar.xz
config: Check for acl_is_trivial_np()
Diffstat (limited to 'src/fsade.c')
-rw-r--r--src/fsade.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fsade.c b/src/fsade.c
index 34a4d57..51b629f 100644
--- a/src/fsade.c
+++ b/src/fsade.c
@@ -199,7 +199,7 @@ static int bfs_check_acl_type(acl_t acl, acl_type_t type) {
return bfs_check_posix1e_acl(acl, false);
}
-#if __FreeBSD__
+#if BFS_HAS_ACL_IS_TRIVIAL_NP
int trivial;
int ret = acl_is_trivial_np(acl, &trivial);
@@ -213,7 +213,7 @@ static int bfs_check_acl_type(acl_t acl, acl_type_t type) {
} else {
return 1;
}
-#else // !__FreeBSD__
+#else
return bfs_check_posix1e_acl(acl, true);
#endif
}