1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-11 18:02:13 +02:00

tests: avoid false failure on setgid dir

* tests/misc/mknod.sh: Skip a portion of the test
in the edge case of setgid directories.
This commit is contained in:
Pádraig Brady
2026-01-21 16:06:51 +00:00
parent dfeb32f6e2
commit 92df52d791

View File

@@ -44,8 +44,10 @@ mkfifo --mode='ug+rw,o+r' f5 || fail=1
mode=$(ls -dgo f5 | cut -b-10)
test "$mode" = prw-rw-rw- || fail=1
mkdir --mode='ug+rw,o+r' f6 || fail=1
mode=$(ls -dgo f6 | cut -b-10)
test "$mode" = drwxrwxrwx || fail=1
if ! test -g .; then
mkdir --mode='ug+rw,o+r' f6 || fail=1
mode=$(ls -dgo f6 | cut -b-10)
test "$mode" = drwxrwxrwx || fail=1
fi
Exit $fail