From b0a565de930df8dc4fd8f00cbfe3a585391cb05a Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Wed, 28 Feb 2018 16:48:33 +0000 Subject: win32: don't add extensions to filenames ending with a dot A filename ending with a dot is a signal to spawnve not to try adding extensions but to use the name unmodified. The add_win32_extension function should follow the same rule. --- include/mingw.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mingw.h b/include/mingw.h index c116e551a..b0e1fa53c 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -474,8 +474,9 @@ char **env_setenv(char **env, const char *name); const char *get_busybox_exec_path(void); void init_winsock(void); -int has_exe_suffix(const char *p); int has_bat_suffix(const char *p); +int has_exe_suffix(const char *p); +int has_exe_suffix_or_dot(const char *name); char *add_win32_extension(const char *p); int has_exec_format(const char *name); -- cgit v1.2.3-55-g6feb