From 05beda493cf176e8d689e9c5eaf4273a32be772f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 15 Jun 2017 20:14:22 -0400 Subject: -perm: Handle permcopy (e.g. u=rw,g=u) correctly --- tests.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index c518f33..2fce23b 100755 --- a/tests.sh +++ b/tests.sh @@ -164,6 +164,7 @@ posix_tests=( test_perm_symbolic test_perm_symbolic_minus test_perm_leading_plus_symbolic_minus + test_permcopy test_ok_stdin test_parens test_bang @@ -833,6 +834,10 @@ function test_perm_octal_plus() { ! $BFS perms -perm +777 2>/dev/null } +function test_permcopy() { + bfs_diff perms -perm u+rw,g+u-w,o=g +} + function test_ok_stdin() { # -ok should *not* close stdin # See https://savannah.gnu.org/bugs/?24561 -- cgit v1.2.3