mbox series

[0/2] run-command: fix Unix PATH lookup

Message ID 20181024073637.GA31069@sigill.intra.peff.net (mailing list archive)
Headers show
Series run-command: fix Unix PATH lookup | expand

Message

Jeff King Oct. 24, 2018, 7:36 a.m. UTC
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