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 /include | |
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 'include')
-rw-r--r-- | include/mingw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h index 1ec5292d8..07f9857e9 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -530,3 +530,4 @@ char *get_system_drive(void); | |||
530 | int chdir_system_drive(void); | 530 | int chdir_system_drive(void); |
531 | char *xabsolute_path(char *path); | 531 | char *xabsolute_path(char *path); |
532 | char *get_drive_cwd(const char *path, char *buffer, int size); | 532 | char *get_drive_cwd(const char *path, char *buffer, int size); |
533 | void fix_path_case(char *path); | ||