summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-12-14 21:07:49 +0100
committerJim Meyering <jim@meyering.net>2006-12-14 21:07:49 +0100
commit33de42f2a88faa4cdfe0a086f3909c160044b402 (patch)
tree389685f4c02b55bcf30f52d46975b71bf6069f40
parentc97742932ab199bed2067cdddd3b1943f13e0f27 (diff)
downloadcoreutils-33de42f2a88faa4cdfe0a086f3909c160044b402.tar.xz
* tests/chgrp/default-no-deref: Don't assume that files are created
with the primary group by default. That's not true in a directory with the set-GID bit set.
-rw-r--r--ChangeLog4
-rwxr-xr-xtests/chgrp/default-no-deref4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ac9f5a452..e8fc2f228 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2006-12-14 Jim Meyering <jim@meyering.net>
+ * tests/chgrp/default-no-deref: Don't assume that files are created
+ with the primary group by default. That's not true in a directory
+ with the set-GID bit set.
+
Don't hang when there's no input tty.
* tests/cp/open-perm-race: Skip this test if there is no
controlling input `terminal'.
diff --git a/tests/chgrp/default-no-deref b/tests/chgrp/default-no-deref
index 5dbbcf529..d2b67536b 100755
--- a/tests/chgrp/default-no-deref
+++ b/tests/chgrp/default-no-deref
@@ -25,7 +25,6 @@ fi
. $srcdir/../group-names
set _ $groups; shift
-g1=$1
g2=$2
pwd=`pwd`
@@ -45,7 +44,8 @@ fi
fail=0
+g_init=`stat --printf=%g f`
chgrp -R $g2 d || fail=1
-test `stat --printf=%g f` = $g1 || fail=1
+test `stat --printf=%g f` = $g_init || fail=1
(exit $fail); exit $fail