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:
+1
-1
Submodule gnulib updated: c4db1328fb...f5d93312df
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user