* 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.
This commit is contained in:
Corinna Vinschen
2008-11-11 11:45:05 +00:00
parent 9df1dbeac6
commit 2348e4f3c6
3 changed files with 19 additions and 3 deletions

View File

@@ -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);