Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-10-09 22:10:53 +0400
committerChristopher Faylor <me@cgf.cx>2000-10-09 22:10:53 +0400
commitdc7f5226eba35da572fad55a7db40382af292469 (patch)
treee95a8333505f274dde686ab91c5608ad0b9cff0d
parent44e939882a277f4fd081c92b46ad7006646ce3ba (diff)
* path.cc (mount_info::cygdrive_posix_path): Handle e:foo construction
correctly.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/path.cc7
2 files changed, 11 insertions, 1 deletions
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 <cgf@cygnus.com>
+
+ * path.cc (mount_info::cygdrive_posix_path): Handle e:foo construction
+ correctly.
+
Mon Oct 9 16:44:00 2000 Corinna Vinschen <corinna@vinschen.de>
* 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);
}