diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-06-15 20:14:22 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-06-15 20:14:22 -0400 |
commit | 05beda493cf176e8d689e9c5eaf4273a32be772f (patch) | |
tree | baa7b309a8ff03ec30e917362c9b9a44f29e6c90 /tests.sh | |
parent | 45f5b5d2ecf2fea8ecf5817df22d1cbbab3518d1 (diff) | |
download | bfs-05beda493cf176e8d689e9c5eaf4273a32be772f.tar.xz |
-perm: Handle permcopy (e.g. u=rw,g=u) correctly
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |