From 585d68178339478f1f52422a84bcbaecc591b307 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 15 Jun 2006 17:35:00 +0000 Subject: [PATCH] Improve permission checks to handle running mkdir test in set-gid directories. --- ChangeLog | 5 +++++ tests/misc/mknod | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9fd27c6..04dfa37 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-15 Bob Proulx (tiny change) + + * tests/misc/mknod: Improve permission checks to handle + running mkdir test in set-gid directories. + 2006-06-14 Jim Meyering * tests/du/basic: Revamp not to hard-code file system block sizes. diff --git a/tests/misc/mknod b/tests/misc/mknod index bdb386c..b6670ab 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 -- 2.7.4