* path.cc (normalize_posix_path): Keep two leading slashes

intact throughout.
	(normalize_win32_path): Revert to only checking for slash.
	(realpath): Convert drive letters to cygdrive paths before
	doing anything else.
	* shared_info.h (mount_info::cygdrive_posix_path): Make public.
This commit is contained in:
Corinna Vinschen
2005-08-26 15:11:06 +00:00
parent dbeee890d4
commit 63958f00d3
3 changed files with 36 additions and 8 deletions

View File

@ -90,6 +90,7 @@ class mount_info
int remove_cygdrive_info_from_registry (const char *cygdrive_prefix, unsigned flags);
int get_cygdrive_info (char *user, char *system, char* user_flags,
char* system_flags);
void cygdrive_posix_path (const char *src, char *dst, int trailing_slash_p);
private:
@ -99,7 +100,6 @@ class mount_info
void to_registry ();
int cygdrive_win32_path (const char *src, char *dst, int& unit);
void cygdrive_posix_path (const char *src, char *dst, int trailing_slash_p);
void read_cygdrive_info_from_registry ();
};