summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-06-15 20:14:22 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-06-15 20:14:22 -0400
commit05beda493cf176e8d689e9c5eaf4273a32be772f (patch)
treebaa7b309a8ff03ec30e917362c9b9a44f29e6c90 /tests.sh
parent45f5b5d2ecf2fea8ecf5817df22d1cbbab3518d1 (diff)
downloadbfs-05beda493cf176e8d689e9c5eaf4273a32be772f.tar.xz
-perm: Handle permcopy (e.g. u=rw,g=u) correctly
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh5
1 files changed, 5 insertions, 0 deletions
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