From f80e6b781d1b98f4b50ed4b235edd1fb3deae199 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 21 Nov 2016 14:53:24 -0500 Subject: Support -perm +MODE for symbolic modes. Only things like -perm +777 are disallowed by GNU find. --- parse.c | 4 ---- tests.sh | 2 +- tests/test_0092.out | 0 3 files changed, 1 insertion(+), 5 deletions(-) create mode 100644 tests/test_0092.out diff --git a/parse.c b/parse.c index c7092fe..a85390a 100644 --- a/parse.c +++ b/parse.c @@ -1446,10 +1446,6 @@ static struct expr *parse_perm(struct parser_state *state, int field, int arg2) expr->mode_cmp = MODE_ANY; ++mode; break; - case '+': - pretty_error(state->cmdline->stderr_colors, - "error: -perm +mode is not supported.\n\n"); - goto fail; default: expr->mode_cmp = MODE_EXACT; break; diff --git a/tests.sh b/tests.sh index 3d3d10b..eb23d20 100755 --- a/tests.sh +++ b/tests.sh @@ -496,7 +496,7 @@ function test_0091() { } function test_0092() { - ! "$BFS" perms -perm +rwx 2>/dev/null + bfs_diff perms -perm +rwx } function test_0093() { diff --git a/tests/test_0092.out b/tests/test_0092.out new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3