From b990323902ab8c16d84a45e3ed5b319874320d64 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 2 Apr 2019 10:17:17 +0100 Subject: 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(). --- shell/ash.c | 1 + 1 file changed, 1 insertion(+) (limited to 'shell') 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) if (new > lim) STUNPUTC(new); *new = 0; + fix_path_case((char *)stackblock()); return stackblock(); #else char *new; -- cgit v1.2.3-55-g6feb