summaryrefslogtreecommitdiff
path: root/tests/cp/fail-perm
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-11-30 17:05:07 +0100
committerJim Meyering <meyering@redhat.com>2007-11-30 17:05:07 +0100
commit317413874c935c8605ae3549e7575e03427b953e (patch)
tree4c63e4cfdd7d77eca3754d07a2ef3eca5c3572b3 /tests/cp/fail-perm
parent9db1c230c4b9178b1f9ab41c47f3615c54b42852 (diff)
downloadcoreutils-317413874c935c8605ae3549e7575e03427b953e.tar.xz
Avoid a spurious test failure when build directory is set-GID.
* tests/cp/fail-perm: Ensure that '.'s set-GID bit is off.
Diffstat (limited to 'tests/cp/fail-perm')
-rwxr-xr-xtests/cp/fail-perm1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/cp/fail-perm b/tests/cp/fail-perm
index 49b06b0ce..b52aba5f8 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