1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

install: with -d, use more accurate diagnostics

* gnulib: Update to latest to get the fix to
propagate the appropriate error message.
* tests/install/basic-1.sh: Add a test case.
* NEWS: Mention the bug fix.
Addresses https://bugs.gnu.org/79072
This commit is contained in:
Pádraig Brady
2025-07-22 20:34:50 +01:00
parent 5ab05e5a36
commit 5a106af2d6
3 changed files with 13 additions and 1 deletions

View File

@@ -148,4 +148,11 @@ returns_ 1 ginstall . . 2>err || fail=1
printf '%s\n' "ginstall: omitting directory '.'" >exp || framework_failure_
compare exp err || fail=1
# Ensure correct diagnostic for failing to create dir
mkdir -m 111 sub-ro || framework_failure_
if ! mkdir sub-ro/d; then
returns_ 1 ginstall -d sub-ro/d 2>err || fail=1
grep 'cannot create directory' err || { cat err; fail=1; }
fi
Exit $fail