diff options
author | Ron Yorston <rmy@pobox.com> | 2018-02-28 16:48:33 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-02-28 16:48:33 +0000 |
commit | b0a565de930df8dc4fd8f00cbfe3a585391cb05a (patch) | |
tree | 4098345cacecbe4e8f5e6dc72810e61101072ccc /include | |
parent | decda04ffdbe4803e3d346b3784403b68faba82e (diff) | |
download | busybox-w32-b0a565de930df8dc4fd8f00cbfe3a585391cb05a.tar.gz busybox-w32-b0a565de930df8dc4fd8f00cbfe3a585391cb05a.tar.bz2 busybox-w32-b0a565de930df8dc4fd8f00cbfe3a585391cb05a.zip |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); | |||
474 | const char *get_busybox_exec_path(void); | 474 | const char *get_busybox_exec_path(void); |
475 | void init_winsock(void); | 475 | void init_winsock(void); |
476 | 476 | ||
477 | int has_exe_suffix(const char *p); | ||
478 | int has_bat_suffix(const char *p); | 477 | int has_bat_suffix(const char *p); |
478 | int has_exe_suffix(const char *p); | ||
479 | int has_exe_suffix_or_dot(const char *name); | ||
479 | char *add_win32_extension(const char *p); | 480 | char *add_win32_extension(const char *p); |
480 | int has_exec_format(const char *name); | 481 | int has_exec_format(const char *name); |
481 | 482 | ||