[PATCH 0/2] run-command: Add EACCES diagnostics
- From
Frans Klaver <fransklaver@gmail.com>
- Date
- Dec 6, 2011, 21:38 UTC
- Message-ID
- <1323207503-26581-1-git-send-email-fransklaver@gmail.com>
- In-Reply-To
- <op.v5e8mgbc0aolir@keputer>
So here's a couple of patches that introduce some more elaborate investigation into what went wrong when receiving EACCES. This is probably something that could be expanded in the future, as running a command doesn't always produce equally obvious error messages.
"run-command: Add checks after execvp fails with EACCES" provides some basic checks on the permissions in PATH, and gives just a warning that none of its checks indicate a problem, so the user should check at least the interpreter permissions.
"run-command: Add interpreter permissions check" actually adds interpreter checking.
---
run-command.c | 172 ++++++++++++++++++++++++++++++++++++++++++++++++ t/t0061-run-command.sh | 38 ++++++++++- 2 files changed, 209 insertions(+), 1 deletions(-)