aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/appletlib.c3
-rw-r--r--shell/ash.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index 3e740363a..8fae11998 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -1150,7 +1150,8 @@ int main(int argc UNUSED_PARAM, char **argv)
1150 char *s; 1150 char *s;
1151 1151
1152 str_tolower(argv[0]); 1152 str_tolower(argv[0]);
1153 if (has_exe_suffix_or_dot(argv[0]) && !(s=strrchr(argv[0], '.'))) { 1153 convert_slashes(argv[0]);
1154 if (has_exe_suffix_or_dot(argv[0]) && (s=strrchr(argv[0], '.'))) {
1154 *s = '\0'; 1155 *s = '\0';
1155 } 1156 }
1156 } 1157 }
diff --git a/shell/ash.c b/shell/ash.c
index ba05f073f..5ec035043 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -14593,6 +14593,9 @@ procargs(char **argv)
14593 goto setarg0; 14593 goto setarg0;
14594 } else if (!sflag) { 14594 } else if (!sflag) {
14595 setinputfile(*xargv, 0); 14595 setinputfile(*xargv, 0);
14596#if ENABLE_PLATFORM_MINGW32
14597 convert_slashes(*xargv);
14598#endif
14596 setarg0: 14599 setarg0:
14597 arg0 = *xargv++; 14600 arg0 = *xargv++;
14598 commandname = arg0; 14601 commandname = arg0;