aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-04-02 10:17:17 +0100
committerRon Yorston <rmy@pobox.com>2019-04-02 10:17:17 +0100
commitb990323902ab8c16d84a45e3ed5b319874320d64 (patch)
treed536f9e815e8f4f6c2108c0e8fdc49a3709bed2b /shell
parent69d328022ebbde0595d328dd0e9d569a93a2d662 (diff)
downloadbusybox-w32-b990323902ab8c16d84a45e3ed5b319874320d64.tar.gz
busybox-w32-b990323902ab8c16d84a45e3ed5b319874320d64.tar.bz2
busybox-w32-b990323902ab8c16d84a45e3ed5b319874320d64.zip
win32: try to make working directory names consistent
Standardise the path names used for the current working directory by: - resolving with realpath(3); - making the drive name or host name uppercase. The first only really works for physical drives; results for mapped drives are patchy. The standardisation is applied in two places: - at the end of updatepwd() in ash; - when a symbolic link is resolved in mingw_chdir().
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 68512799e..6bc1dba24 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -2980,6 +2980,7 @@ updatepwd(const char *dir)
2980 if (new > lim) 2980 if (new > lim)
2981 STUNPUTC(new); 2981 STUNPUTC(new);
2982 *new = 0; 2982 *new = 0;
2983 fix_path_case((char *)stackblock());
2983 return stackblock(); 2984 return stackblock();
2984#else 2985#else
2985 char *new; 2986 char *new;