summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-01-13 09:35:45 -0500
committerTavian Barnes <tavianator@tavianator.com>2021-01-13 09:38:05 -0500
commit6cd1b2d427a8c7e487d40d371435a2b30cf94ba3 (patch)
tree6d62bffbb7f5bcf79ddd32953ce975ab4f7c4abc /tests.sh
parent6e29563b1bf41b317ea69da35c7b1e64e7f0d5e0 (diff)
downloadbfs-6cd1b2d427a8c7e487d40d371435a2b30cf94ba3.tar.xz
-perm: Use +t instead of ug+t
The chmod spec says that ug+t is unspecified, and only +t or a+t is guaranteed to actually set the sticky bit. In practice GNU tools respect o+t as well, but ignore u+t/g+t. Fix the implementation to match GNU, and only test the POSIX required parse.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index 0e1a964..8ec983f 100755
--- a/tests.sh
+++ b/tests.sh
@@ -1762,7 +1762,7 @@ function test_perm_setid() {
}
function test_perm_sticky() {
- bfs_diff rainbow -perm /ug+t
+ bfs_diff rainbow -perm /+t
}
function test_prune() {