summaryrefslogtreecommitdiff
path: root/tests/misc/mknod
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-06-15 17:35:00 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-06-15 17:35:00 +0000
commit585d68178339478f1f52422a84bcbaecc591b307 (patch)
treebb624b6007d21332df30b1d370ef2312e4045793 /tests/misc/mknod
parente48234f842892db74f37d954dd3bcb42dfcb2819 (diff)
downloadcoreutils-585d68178339478f1f52422a84bcbaecc591b307.tar.xz
Improve permission checks to handle
running mkdir test in set-gid directories.
Diffstat (limited to 'tests/misc/mknod')
-rwxr-xr-xtests/misc/mknod2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/mknod b/tests/misc/mknod
index bdb386c97..b6670ab08 100755
--- a/tests/misc/mknod
+++ b/tests/misc/mknod
@@ -34,6 +34,6 @@ test $mode = prwx-wxr-- || fail=1
mkdir -m 734 f3 || fail=1
set _ `ls -dgo f3`; shift; mode=$1
-test $mode = drwx-wxr-- || fail=1
+test $mode = drwx-wxr-- || test $mode = drwx-wsr-- || fail=1
(exit $fail); exit $fail