diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-04-26 10:51:40 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-26 10:51:41 -0700 |
commit | 8c1ba2131436f7412b3aa8642ea507cc171af5c4 (patch) | |
tree | 61ae5348e708640fafcba14d1d98ab74b977d79d /compat/mingw.h | |
parent | Merge branch 'jc/push-upstream-sanity' into maint (diff) | |
parent | run-command: treat inaccessible directories as ENOENT (diff) | |
download | tgif-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.h | 4 |
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) |