summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-14 13:01:17 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-14 13:01:17 -0500
commitc09c83d321417576eb6c7c3f6222e2ed05110c1c (patch)
tree15c37aecc5de5cf9311a86750d31a5804a2f2ef7 /parse.c
parent4fdc29a88b9923d874375c72774a01a91a7fc253 (diff)
downloadbfs-c09c83d321417576eb6c7c3f6222e2ed05110c1c.tar.xz
Implement -mount/-xdev.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 6177e76..74b51cb 100644
--- a/parse.c
+++ b/parse.c
@@ -679,6 +679,9 @@ static struct expr *parse_literal(struct parser_state *state) {
return parse_depth(state, arg, &state->cmdline->maxdepth);
} else if (strcmp(arg, "-mmin") == 0) {
return parse_acmtime(state, arg, MTIME, MINUTES);
+ } else if (strcmp(arg, "-mount") == 0) {
+ state->cmdline->flags |= BFTW_MOUNT;
+ return new_option(state, arg);
} else if (strcmp(arg, "-mtime") == 0) {
return parse_acmtime(state, arg, MTIME, DAYS);
}
@@ -762,7 +765,10 @@ static struct expr *parse_literal(struct parser_state *state) {
break;
case 'x':
- if (strcmp(arg, "-xtype") == 0) {
+ if (strcmp(arg, "-xdev") == 0) {
+ state->cmdline->flags |= BFTW_MOUNT;
+ return new_option(state, arg);
+ } else if (strcmp(arg, "-xtype") == 0) {
return parse_type(state, arg, eval_xtype);
}
break;