1
0
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:
Sylvestre Ledru
2025-11-15 22:24:04 +01:00
committed by Pádraig Brady
parent 28cf6ac831
commit 8a56f4cb89
+8
View File
@@ -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