[PATCH 0/2] run-command: fix Unix PATH lookup
- From
Jeff King <peff@peff.net>
- Date
- Oct 24, 2018, 07:36 UTC
- Message-ID
- <20181024073637.GA31069@sigill.intra.peff.net>
This series fixes a bug where run-command.c accidentally runs commands from the current directory when they are not found in the $PATH.
The second patch is the interesting one. The first one is just a necessary cleanup. Possibly this should be split into two topics: the second patch slated for maint, and then the first one as an independent fixup on tb/filter-alternate-refs (which is in master).
[1/2]: t5410: use longer path for sample script [2/2]: run-command: mark path lookup errors with ENOENT
run-command.c | 20 ++++++++++++++++---- t/t0061-run-command.sh | 13 ++++++++++++- t/t5410-receive-pack-alternates.sh | 2 +- 3 files changed, 29 insertions(+), 6 deletions(-)
-Peff