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

tests: check that mknod, mkfifo, and mkdir handle comma-separated modes

* tests/misc/mknod.sh: Test that mknod, mkfifo, and mkdir parse
comma-separated mode strings.
This commit is contained in:
Collin Funk
2025-11-16 21:23:18 -08:00
parent c9303c5de0
commit 0f695854d3

View File

@@ -36,4 +36,16 @@ mkdir -m 734 f3 || fail=1
mode=$(ls -dgo f3|cut -b-10)
test $mode = drwx-wxr-- || test $mode = drwx-wsr-- || fail=1
mknod --mode='ug+rw,o+r' f4 p || fail=1
mode=$(ls -dgo f4 | cut -b-10)
test "$mode" = prw-rw-rw- || fail=1
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
Exit $fail