mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
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.
This commit is contained in:
1 parent
0f8bb24ca8
commit
19b460b239
1 file changed
+3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user