git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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
Next: Jeff King
Message 1 of 8 in “run-command: fix Unix PATH lookup”
  1. 0/2 run-command: fix Unix PATH lookupJeff King, Oct 24, 2018
  2. 1/2 t5410: use longer path for sample scriptJeff King, Oct 24, 2018
  3. Johannes SchindelinOct 24, 2018
  4. Junio C HamanoOct 25, 2018
  5. 2/2 run-command: mark path lookup errors with ENOENTJeff King, Oct 24, 2018
  6. Johannes SchindelinOct 24, 2018
  7. Jeff KingOct 24, 2018
  8. Johannes SchindelinOct 24, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.