From: Jim Meyering Date: Fri, 30 Nov 2007 16:05:07 +0000 (+0100) Subject: Avoid a spurious test failure when build directory is set-GID. X-Git-Tag: v6.9.90~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=317413874c935c8605ae3549e7575e03427b953e;p=thirdparty%2Fcoreutils.git Avoid a spurious test failure when build directory is set-GID. * tests/cp/fail-perm: Ensure that '.'s set-GID bit is off. --- diff --git a/ChangeLog b/ChangeLog index 005cf8f18c..6b21a5adc6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-11-30 Jim Meyering + 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, diff --git a/tests/cp/fail-perm b/tests/cp/fail-perm index 49b06b0ce8..b52aba5f88 100755 --- a/tests/cp/fail-perm +++ b/tests/cp/fail-perm @@ -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