]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Avoid a spurious test failure when build directory is set-GID.
authorJim Meyering <meyering@redhat.com>
Fri, 30 Nov 2007 16:05:07 +0000 (17:05 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 30 Nov 2007 16:05:07 +0000 (17:05 +0100)
* tests/cp/fail-perm: Ensure that '.'s set-GID bit is off.

ChangeLog
tests/cp/fail-perm

index 005cf8f18c4e3880dbd991c7fb16709f40f2cba1..6b21a5adc6f56913d03536422aac5a088dc64b9a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-11-30  Jim Meyering  <meyering@redhat.com>
 
+       Avoid a spurious test failure when build directory is set-GID.
+       * tests/cp/fail-perm: Ensure that '.'s set-GID bit is off.
+
        Be extra careful to quote $abs_top_builddir-derived names.
        * tests/misc/ls-misc (shell_quote): New function.
        Use it to quote file names derived from $abs_top_builddir,
index 49b06b0ce8c8e49ae744366c2d29587696fd8d59..b52aba5f8801a708ecc779e580256c27fc67a129 100755 (executable)
@@ -25,6 +25,7 @@ fi
 . $srcdir/../test-lib.sh
 skip_if_root_
 
+chmod g-s . || framework_failure
 mkdir D D/D || framework_failure
 touch D/a || framework_failure
 chmod 0 D/a || framework_failure