From 6cd1b2d427a8c7e487d40d371435a2b30cf94ba3 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 13 Jan 2021 09:35:45 -0500 Subject: -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. --- tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests.sh') 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() { -- cgit v1.2.3