mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-07-26 10:39:01 +02:00
tests: install should ignore umask
Identified here: <https://github.com/uutils/coreutils/pull/9254> * tests/install/basic-1.sh: Add the check.
This commit is contained in:
committed by
Pádraig Brady
parent
28cf6ac831
commit
8a56f4cb89
@@ -160,4 +160,12 @@ if ! mkdir sub-ro/d; then
|
||||
grep 'cannot create directory' err || { cat err; fail=1; }
|
||||
fi
|
||||
|
||||
# Test install with --mode=+w (relative mode) ignores umask
|
||||
umask 0022 || framework_failure_
|
||||
touch file1 || framework_failure_
|
||||
ginstall file1 file2 --mode=+w || fail=1
|
||||
# Check that file2 has permissions --w--w--w-
|
||||
mode=$(ls -l file2|cut -b-10)
|
||||
test "$mode" = --w--w--w- || fail=1
|
||||
|
||||
Exit $fail
|
||||
|
||||
Reference in New Issue
Block a user