aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-08-27 12:48:08 +0100
committerRon Yorston <rmy@pobox.com>2020-08-27 12:48:08 +0100
commite1a7b5a4c98d5fabf5d318850950a42db27f3d44 (patch)
treeb9ccf33dafed5b1fc0492336ee529848369a51a9 /shell
parent35921142946225cc292e3954455f2abd4d55daeb (diff)
downloadbusybox-w32-e1a7b5a4c98d5fabf5d318850950a42db27f3d44.tar.gz
busybox-w32-e1a7b5a4c98d5fabf5d318850950a42db27f3d44.tar.bz2
busybox-w32-e1a7b5a4c98d5fabf5d318850950a42db27f3d44.zip
ash: replace backslashes in argument to 'cd' built-in
Since the new current directory is normalised it might as well also have forward slashes. See GitHub issue #198.
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 7967872f7..1d7d916da 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -3143,7 +3143,7 @@ updatepwd(const char *dir)
3143 STUNPUTC(new); 3143 STUNPUTC(new);
3144 *new = 0; 3144 *new = 0;
3145 fix_path_case((char *)stackblock()); 3145 fix_path_case((char *)stackblock());
3146 return stackblock(); 3146 return bs_to_slash((char *)stackblock());
3147#else 3147#else
3148 char *new; 3148 char *new;
3149 char *p; 3149 char *p;