From c52635fce35aa7d2e4414a44bac9fe06dfb56885 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 17 Dec 2018 22:05:49 -0500 Subject: Implement -acl test --- eval.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 44e4a6d..ce72579 100644 --- a/eval.c +++ b/eval.c @@ -196,6 +196,13 @@ bool eval_access(const struct expr *expr, struct eval_state *state) { return xfaccessat(ftwbuf->at_fd, ftwbuf->at_path, expr->idata) == 0; } +/** + * -acl test. + */ +bool eval_acl(const struct expr *expr, struct eval_state *state) { + return bfs_check_acl(state->ftwbuf); +} + /** * -capable test. */ -- cgit v1.2.3