summaryrefslogtreecommitdiff
path: root/exec_cmd.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-04-20 15:50:03 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-04-20 15:50:03 -0700
commitbd6f71d1fca865507b3f0a9e310b4d02632cf0ce (patch)
tree9ec8bf5af578538c1f690e8169fc123cb7434dea /exec_cmd.c
parentMerge branch 'jc/push-upstream-sanity' (diff)
parentrun-command: treat inaccessible directories as ENOENT (diff)
downloadtgif-bd6f71d1fca865507b3f0a9e310b4d02632cf0ce.tar.xz
Merge branch 'jk/run-command-eacces'
When PATH contains an unreadable directory, alias expansion code did not kick in, and failed with an error that said "git-subcmd" was not found. By Jeff King (1) and Ramsay Jones (1) * jk/run-command-eacces: run-command: treat inaccessible directories as ENOENT compat/mingw.[ch]: Change return type of exec functions to int
Diffstat (limited to 'exec_cmd.c')
-rw-r--r--exec_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec_cmd.c b/exec_cmd.c
index 171e841531..125fa6fabf 100644
--- a/exec_cmd.c
+++ b/exec_cmd.c
@@ -134,7 +134,7 @@ int execv_git_cmd(const char **argv) {
trace_argv_printf(nargv, "trace: exec:");
/* execvp() can only ever return if it fails */
- execvp("git", (char **)nargv);
+ sane_execvp("git", (char **)nargv);
trace_printf("trace: exec failed: %s\n", strerror(errno));