summaryrefslogtreecommitdiffstats
path: root/winsup
diff options
context:
space:
mode:
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/path.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 396245072..484c3cbe1 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+Tue May 1 01:26:15 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * path.cc (mount_info::conv_to_win32_path): More path tweaking.
+
Tue May 1 00:34:46 2001 Christopher Faylor <cgf@cygnus.com>
* path.cc (mount_info::conv_to_win32_path): Fix debugging output to
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 07ea32161..3814039b2 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1242,7 +1242,7 @@ mount_info::conv_to_win32_path (const char *src_path, char *dst,
int n = mi->native_pathlen;
memcpy (dst, mi->native_path, n + 1);
char *p = pathbuf + mi->posix_pathlen;
- if ((isdrive (dst) && !dst[2]) || (*p && dst[n - 1] != '\\'))
+ if ((isdrive (dst) && !dst[2]) || (*p && *p != '/'))
dst[n++] = '\\';
strcpy (dst + n, p);
backslashify (dst, dst, 0);