diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-02-06 23:20:45 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-02-06 23:20:45 -0500 |
commit | 61952bffb5356d8378df7180a981496dd5240830 (patch) | |
tree | 85b21d1209311f2450307ee10a3f5903b58d4faa /parse.c | |
parent | 9009456c1ad07f8cd781c21c9d63bde354da7d41 (diff) | |
download | bfs-61952bffb5356d8378df7180a981496dd5240830.tar.xz |
parse: Add support for whiteouts in -type/-xtype
FreeBSD find supports this.
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2264,6 +2264,10 @@ static struct expr *parse_type(struct parser_state *state, int x, int arg2) { type = BFTW_SOCK; type_prob = 0.0000116881; break; + case 'w': + type = BFTW_WHT; + type_prob = 0.000001; + break; case '\0': parse_error(state, "%s %s: Expected a type flag.\n", expr->argv[0], expr->argv[1]); |