diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-11-11 11:45:05 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-11-11 11:45:05 +0000 |
commit | 2348e4f3c61775ad596456bde503f6ae2387cba0 (patch) | |
tree | ba2a3e421e94ee0cf7b415d520e9e6fb74c669a9 /winsup/cygwin/path.cc | |
parent | 9df1dbeac6d7512ca301c84802b6d17cc9556911 (diff) | |
download | cygnal-2348e4f3c61775ad596456bde503f6ae2387cba0.tar.gz cygnal-2348e4f3c61775ad596456bde503f6ae2387cba0.tar.bz2 cygnal-2348e4f3c61775ad596456bde503f6ae2387cba0.zip |
* mount.cc (mount_info::cygdrive_win32_path): Always upper case
DOS drive letter to accommodate case sensitivity.
(cygdrive_getmntent): Ditto.
* path.cc (path_conv::check): Invalidate wide_path after making path
relative.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index d0eab0298..265712fdb 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -1231,7 +1231,14 @@ out: if (opt & PC_NOFULL) { if (is_relpath) - mkrelpath (this->path, !!caseinsensitive); + { + mkrelpath (this->path, !!caseinsensitive); + /* Invalidate wide_path so that wide relpath can be created + in later calls to get_nt_native_path or get_wide_win32_path. */ + if (wide_path) + cfree (wide_path); + wide_path = NULL; + } if (need_directory) { size_t n = strlen (this->path); |