diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c index b51a3fb82..3c53b25ff 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -2860,6 +2860,9 @@ padvance_magic(const char **path, const char *name, int magic) | |||
2860 | 2860 | ||
2861 | if (len) { | 2861 | if (len) { |
2862 | q = mempcpy(q, start, len); | 2862 | q = mempcpy(q, start, len); |
2863 | #if ENABLE_PLATFORM_MINGW32 | ||
2864 | if (q[-1] != '/' && q[-1] != '\\') | ||
2865 | #endif | ||
2863 | *q++ = '/'; | 2866 | *q++ = '/'; |
2864 | } | 2867 | } |
2865 | strcpy(q, name); | 2868 | strcpy(q, name); |
@@ -9160,6 +9163,7 @@ describe_command(char *command, const char *path, int describe_command_verbose) | |||
9160 | } | 9163 | } |
9161 | #if ENABLE_PLATFORM_MINGW32 | 9164 | #if ENABLE_PLATFORM_MINGW32 |
9162 | add_win32_extension(p); | 9165 | add_win32_extension(p); |
9166 | bs_to_slash(p); | ||
9163 | #endif | 9167 | #endif |
9164 | if (describe_command_verbose) { | 9168 | if (describe_command_verbose) { |
9165 | out1fmt(" is %s", p); | 9169 | out1fmt(" is %s", p); |