diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 5506762f4..c6315d32e 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 9 14:07:04 2000 Christopher Faylor + + * path.cc (mount_info::cygdrive_posix_path): Handle e:foo construction + correctly. + Mon Oct 9 16:44:00 2000 Corinna Vinschen * fhandler_mem.cc (fhandler_dev_mem::fhandler_dev_mem): diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 41a0a7f16..cc339973c 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -1156,8 +1156,13 @@ mount_info::cygdrive_posix_path (const char *src, char *dst, int trailing_slash_ dst[len++] = '\000'; else { + int n; dst[len++] = '/'; - strcpy (dst + len, src + 3); + if (SLASH_P (src[2])) + n = 3; + else + n = 2; + strcpy (dst + len, src + n); } slashify (dst, dst, trailing_slash_p); }