diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-12-17 22:05:49 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-12-17 22:05:49 -0500 |
commit | fb7a61add741b28ae6c91787373bdb544b2e751b (patch) | |
tree | 5bea112fa4f075dcea6f9f052cd2d9d7ee714f07 /eval.c | |
parent | 18fc03882d49ff46b41a53afc0d6232e1dfbbb35 (diff) | |
download | bfs-fb7a61add741b28ae6c91787373bdb544b2e751b.tar.xz |
Add new -capable test
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -197,6 +197,13 @@ bool eval_access(const struct expr *expr, struct eval_state *state) { } /** + * -capable test. + */ +bool eval_capable(const struct expr *expr, struct eval_state *state) { + return bfs_check_capabilities(state->ftwbuf); +} + +/** * Get the given timespec field out of a stat buffer. */ static const struct timespec *eval_stat_time(const struct expr *expr, struct eval_state *state) { |