summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-12-17 22:05:49 -0500
committerTavian Barnes <tavianator@tavianator.com>2018-12-17 22:05:49 -0500
commitc52635fce35aa7d2e4414a44bac9fe06dfb56885 (patch)
treecb84f43d5e888ce429f30f6df5d45d8357af9bdf /eval.c
parentfb7a61add741b28ae6c91787373bdb544b2e751b (diff)
downloadbfs-c52635fce35aa7d2e4414a44bac9fe06dfb56885.tar.xz
Implement -acl test
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 44e4a6d..ce72579 100644
--- a/eval.c
+++ b/eval.c
@@ -197,6 +197,13 @@ bool eval_access(const struct expr *expr, struct eval_state *state) {
}
/**
+ * -acl test.
+ */
+bool eval_acl(const struct expr *expr, struct eval_state *state) {
+ return bfs_check_acl(state->ftwbuf);
+}
+
+/**
* -capable test.
*/
bool eval_capable(const struct expr *expr, struct eval_state *state) {