diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-11-21 14:53:24 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-11-21 14:53:24 -0500 |
commit | f80e6b781d1b98f4b50ed4b235edd1fb3deae199 (patch) | |
tree | 1206ed4d348e86e9fc43204fc13e1624810f8bee | |
parent | fc98276e1401366fd91a437af3e7fa5f1471f94e (diff) |
Support -perm +MODE for symbolic modes.
Only things like -perm +777 are disallowed by GNU find.
-rw-r--r-- | parse.c | 4 | ||||
-rwxr-xr-x | tests.sh | 2 | ||||
-rw-r--r-- | tests/test_0092.out | 0 |
3 files changed, 1 insertions, 5 deletions
@@ -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; @@ -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 --- /dev/null +++ b/tests/test_0092.out |