summaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-04-26 10:51:40 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-04-26 10:51:41 -0700
commit8c1ba2131436f7412b3aa8642ea507cc171af5c4 (patch)
tree61ae5348e708640fafcba14d1d98ab74b977d79d /compat/mingw.h
parentMerge branch 'jc/push-upstream-sanity' into maint (diff)
parentrun-command: treat inaccessible directories as ENOENT (diff)
downloadtgif-8c1ba2131436f7412b3aa8642ea507cc171af5c4.tar.xz
Merge branch 'jk/run-command-eacces' into maint
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 'compat/mingw.h')
-rw-r--r--compat/mingw.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index 0ff1e04812..ef5b15014e 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -274,9 +274,9 @@ int mingw_utime(const char *file_name, const struct utimbuf *times);
pid_t mingw_spawnvpe(const char *cmd, const char **argv, char **env,
const char *dir,
int fhin, int fhout, int fherr);
-void mingw_execvp(const char *cmd, char *const *argv);
+int mingw_execvp(const char *cmd, char *const *argv);
#define execvp mingw_execvp
-void mingw_execv(const char *cmd, char *const *argv);
+int mingw_execv(const char *cmd, char *const *argv);
#define execv mingw_execv
static inline unsigned int git_ntohl(unsigned int x)