diff options
author | Ron Yorston <rmy@pobox.com> | 2019-04-02 10:17:17 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-04-02 10:17:17 +0100 |
commit | b990323902ab8c16d84a45e3ed5b319874320d64 (patch) | |
tree | d536f9e815e8f4f6c2108c0e8fdc49a3709bed2b /shell | |
parent | 69d328022ebbde0595d328dd0e9d569a93a2d662 (diff) | |
download | busybox-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.c | 1 |
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; |