* path.cc (mount_info::conv_to_win32_path): Treat UNC paths the same as paths

including `:' or `\'.
This commit is contained in:
Christopher Faylor
2001-05-09 18:59:10 +00:00
parent cd94b71c1b
commit cedb00be89
2 changed files with 6 additions and 1 deletions

View File

@ -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);