summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/path.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 0c983617f..c278a9188 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-10 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
+
+ * path.cc (mount_info::conv_to_win32_path): Treat UNC paths the same as
+ paths including `:' or `\'.
+
Wed May 9 14:46:32 2001 Christopher Faylor <cgf@cygnus.com>
* fhandler.h (fhandler_termios::echo_erase): Declare new method.
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 6ca78b470..048063dde 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1171,7 +1171,7 @@ mount_info::conv_to_win32_path (const char *src_path, char *dst,
/* An MS-DOS spec has either a : or a \. If this is found, short
circuit most of the rest of this function. */
- if (strpbrk (src_path, ":\\") != NULL)
+ if (strpbrk (src_path, ":\\") != NULL || slash_unc_prefix_p (src_path))
{
debug_printf ("%s already win32", src_path);
rc = normalize_win32_path (src_path, dst);