From 2d4ff1dcd044c09dd6368b6726d53b4f3afcd546 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 18 Apr 2024 16:29:17 -0400 Subject: config: Check for acl_is_trivial_np() --- src/fsade.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fsade.c') 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 } -- cgit v1.2.3