summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-02-06 23:20:45 -0500
committerTavian Barnes <tavianator@tavianator.com>2019-02-06 23:20:45 -0500
commit61952bffb5356d8378df7180a981496dd5240830 (patch)
tree85b21d1209311f2450307ee10a3f5903b58d4faa
parent9009456c1ad07f8cd781c21c9d63bde354da7d41 (diff)
downloadbfs-61952bffb5356d8378df7180a981496dd5240830.tar.xz
parse: Add support for whiteouts in -type/-xtype
FreeBSD find supports this.
-rw-r--r--parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 8fa9e79..d9e2791 100644
--- a/parse.c
+++ b/parse.c
@@ -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]);