From 8a56f4cb89e78b49d076481d9eef193ee89b28c2 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 15 Nov 2025 22:24:04 +0100 Subject: [PATCH] tests: install should ignore umask Identified here: * tests/install/basic-1.sh: Add the check. --- tests/install/basic-1.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/install/basic-1.sh b/tests/install/basic-1.sh index b529f2af9c..741de7aef4 100755 --- a/tests/install/basic-1.sh +++ b/tests/install/basic-1.sh @@ -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 -- 2.47.3