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 authored and Pádraig Brady committed 2025-11-15 23:10:54 +00:00
1 parent 28cf6ac831
commit 8a56f4cb89
1 file changed
+8
+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