Re: [PATCH] run-command.c: Accept EACCES as command not found
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 21, 2011, 22:13 UTC
- Message-ID
- <7vbos5f7ix.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1321912387-4569-1-git-send-email-fransklaver@gmail.com>
Frans Klaver <fransklaver@gmail.com> writes:
Show 7 quoted lines
> execvp returns ENOENT if a command was not found after searching PATH. > If path contains a directory that current user has insufficient > privileges to, EACCES is returned. This may still mean the program > wasn't found. > > If the latter case is encountered, git errors out without giving aliases > a try,...
Isn't that a *good* thing in general, though, so that the user can diagnose the breakage in the $PATH and fix it?