diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-02-14 13:01:17 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-02-14 13:01:17 -0500 |
commit | c09c83d321417576eb6c7c3f6222e2ed05110c1c (patch) | |
tree | 15c37aecc5de5cf9311a86750d31a5804a2f2ef7 /parse.c | |
parent | 4fdc29a88b9923d874375c72774a01a91a7fc253 (diff) | |
download | bfs-c09c83d321417576eb6c7c3f6222e2ed05110c1c.tar.xz |
Implement -mount/-xdev.
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; |