summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-12-09 08:45:30 +0100
committerJim Meyering <meyering@redhat.com>2009-12-09 08:45:30 +0100
commit19b460b239e2580ef4db4ce46b996e31bd1d0395 (patch)
treef9c3c18313876849ca822b62374ca0e1140ce0dd /tests
parent0f8bb24ca843a5b587529ffef5d25b5a58c1f629 (diff)
downloadcoreutils-19b460b239e2580ef4db4ce46b996e31bd1d0395.tar.xz
tests: don't let "umask 077" cause root-only cp/preserve-gid failure
* tests/cp/preserve-gid: Use working_umask_or_skip_ to set umask to 022.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cp/preserve-gid3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/cp/preserve-gid b/tests/cp/preserve-gid
index 5b932af60..de6a893a5 100755
--- a/tests/cp/preserve-gid
+++ b/tests/cp/preserve-gid
@@ -19,6 +19,9 @@
. $srcdir/test-lib.sh
require_root_
+# Some of the tests expect a umask that grants group and/or world read access.
+working_umask_or_skip_
+
# Record primary group number, usually 0.
# This is the group ID used when cp (without -p) creates a new file.
primary_group_num=$(id -g)