1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-12 20:09:14 +02:00

install: fix crash with --strip and large $PATH on ppc and sparc

* gnulib: Update to the latest gnulib to pull in the fix
(v1.0-2406-g89f63027de) to allocate the $PATH processing memory
before the vfork call, which is required on ppc and sparc.
* tests/install/basic-1.sh: Ensure posix_spawnp() suports a large $PATH,
which needs careful handling with vfork() as detailed in gnulib.
This commit is contained in:
Pádraig Brady
2025-11-07 16:14:12 +00:00
parent 574b1b938c
commit 58944b541e
2 changed files with 6 additions and 1 deletions
+1 -1
Submodule gnulib updated: c4db1328fb...f5d93312df
+5
View File
@@ -64,6 +64,11 @@ test -f $dd || fail=1
mode=$(ls -l $dir/$dd|cut -b-10)
test "$mode" = -r-xr-xr-x || fail=1
# Ensure there are no issues with posix_spawnp() and large $PATHs
# which we saw when initially changing from execvp() to posix_spawnp().
PATH=$(printf '%4001s' '' | sed 's/\(.\{79\}\)./\1:/g'):$PATH \
ginstall $strip -c -m 555 $dd $dir || fail=1
# These failed in coreutils CVS from 2004-06-25 to 2004-08-11.
ginstall -d . || fail=1
ginstall -d newdir || fail=1