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>2001-05-09 22:59:10 +0400
committerChristopher Faylor <me@cgf.cx>2001-05-09 22:59:10 +0400
commitcedb00be8982cfa9905b8552122689c21abb226d (patch)
tree540336ee610160ccd0a1999e3025a1c5e3678300 /winsup/cygwin/path.cc
parentcd94b71c1b254eb9f2d0ef8cfe99f100430cd86a (diff)
* path.cc (mount_info::conv_to_win32_path): Treat UNC paths the same as paths
including `:' or `\'.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc2
1 files changed, 1 insertions, 1 deletions
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);