summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-03-05 13:53:40 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-03-05 13:53:40 -0500
commit037361965a14e1899020bf16c9112936e39020e8 (patch)
treeb14529eeba8b28d6082b9b20a3c9c0cd97fbeda3 /parse.c
parent0cc26b741deffefe181981022321549a3ed2bcff (diff)
downloadbfs-037361965a14e1899020bf16c9112936e39020e8.tar.xz
Implement -used.
This doesn't agree with find's output, but I think find is buggy here. For example, find -used +0 is returning fewer results than find -used 1, which makes no sense given that 1 is greater than 0.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 2fc4fd8..154d566 100644
--- a/parse.c
+++ b/parse.c
@@ -1065,6 +1065,8 @@ static struct expr *parse_literal(struct parser_state *state) {
case 'u':
if (strcmp(arg, "-uid") == 0) {
return parse_test_icmp(state, eval_uid);
+ } else if (strcmp(arg, "-used") == 0) {
+ return parse_test_icmp(state, eval_used);
} else if (strcmp(arg, "-user") == 0) {
return parse_user(state);
}