/usr/bin/find doesn't accept "-acl" option. % /usr/bin/find . -acl find: -acl: unknown primary or operator usr.bin/find/option.c doesn't include <sys/acl.h>, so the following line is not compiled. #ifdef ACL_TYPE_NFS4 { "-acl", c_acl, f_acl, 0 }, #endif
Created attachment 249699 [details] Patch to restore "-acl" option I can use "-acl" option after including <sys/acl.h> in option.c and rebuild usr.bin/find.
Thanks, I just need to make sure cross-builds still work.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=984add354edef8a6b4983a33f89ff62532a1556b commit 984add354edef8a6b4983a33f89ff62532a1556b Author: Yoshiaki Kasahara <ykasap@gmail.com> AuthorDate: 2024-12-06 18:27:32 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2024-12-06 18:29:37 +0000 find: Re-enable the -acl primary on FreeBSD This was made conditional to support cross-builds, but the relevant header wasn't included so it was never enabled for native builds. PR: 278124 Fixes: c3a6ea5ba6b5 Allow compiling usr.bin/find on Linux and Mac usr.bin/find/option.c | 1 + 1 file changed, 1 insertion(+)