aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-02-28 16:48:33 +0000
committerRon Yorston <rmy@pobox.com>2018-02-28 16:48:33 +0000
commitb0a565de930df8dc4fd8f00cbfe3a585391cb05a (patch)
tree4098345cacecbe4e8f5e6dc72810e61101072ccc /include
parentdecda04ffdbe4803e3d346b3784403b68faba82e (diff)
downloadbusybox-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.h3
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);
474const char *get_busybox_exec_path(void); 474const char *get_busybox_exec_path(void);
475void init_winsock(void); 475void init_winsock(void);
476 476
477int has_exe_suffix(const char *p);
478int has_bat_suffix(const char *p); 477int has_bat_suffix(const char *p);
478int has_exe_suffix(const char *p);
479int has_exe_suffix_or_dot(const char *name);
479char *add_win32_extension(const char *p); 480char *add_win32_extension(const char *p);
480int has_exec_format(const char *name); 481int has_exec_format(const char *name);
481 482