make/tests/scripts
Paul Smith 60905a8afb [SV 56834] Support local PATH search with posix_spawnp
When using exec we install the child's environment before invoking
execlp(), so commands are found on the child's PATH.  posix_spawnp
searches on the parent's PATH, which we don't want.

Import gnulib's findprog-in module and use it to search the child's
PATH, then use posix_spawn() to run it.

Also, posix_spawn() does not fall back to trying sh on ENOEXEC, as
execlp() does, so implement that as well.

* bootstrap.conf: Add the findprog-in gnulib module
* src/job.c: Include findprog.h if we're using posix_spawn.
(start_job_command): Remove the handling of child->cmd_name,
(child_execute_job): and add it here.  Look up the command to be
run in the child's path and invoke it if found.  If it fails with
ENOEXEC then retry it as an argument to the default shell.
* tests/scripts/misc/general4: Test makefile PATH assignments.
* tests/scripts/features/targetvars: Ditto, for target variables.
2019-09-08 15:12:40 -04:00
..
features [SV 56834] Support local PATH search with posix_spawnp 2019-09-08 15:12:40 -04:00
functions * tests/scripts/functions/wildcard: Skip dangling symlink test. 2019-09-07 18:27:26 -04:00
misc [SV 56834] Support local PATH search with posix_spawnp 2019-09-08 15:12:40 -04:00
options * job.c (child_error): Modify error message string. 2017-10-30 17:07:21 -04:00
targets [SV 54740] Ensure .SILENT settings do not leak into sub-makes 2019-05-19 15:27:26 -04:00
variables * doc/make.texi: [SV 54116] Document whitespace removal trick. 2019-05-19 19:25:50 -04:00
vms [SV 41758]: Fix archive support for VMS. 2014-10-20 01:31:42 -04:00
test_template Update the test template. A few fixes in run_make_test(). 2004-09-22 04:36:17 +00:00