]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: don't let "umask 077" cause root-only cp/preserve-gid failure
authorJim Meyering <meyering@redhat.com>
Wed, 9 Dec 2009 07:45:30 +0000 (08:45 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 9 Dec 2009 07:45:30 +0000 (08:45 +0100)
* tests/cp/preserve-gid: Use working_umask_or_skip_ to set umask to 022.

tests/cp/preserve-gid

index 5b932af60175597ed225aaadef71f1ef08ecf32d..de6a893a501f2baba8e5e0b0c1198fc5f9e563ed 100755 (executable)
@@ -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)