Mail Archives: cygwin-developers/1998/11/02/14:06:52
Hello,
the handling of UNC device paths is incorrect. In the actual version,
the path must end with a colon. This ignores the existence of
paths like '\\.\tape0' or '\\.\physicaldrive2'. So, leave out
the "colon check".
Regards,
Corinna
---- snip ----
--- path.cc.orig Mon Nov 02 22:24:51 1998
+++ path.cc Mon Nov 02 22:35:36 1998
@@ -697,9 +697,8 @@ mount_info::conv_to_win32_path (const ch
int j = mount[i].devicelen;
memcpy (p, mount[i].device, j);
/* Do not add trailing \ to UNC device names like \\.\a: */
- if (pathbuf[mount[i].pathlen] != '/' &&
- !(strncmp (mount[i].device, "\\\\.\\", 4) == 0 &&
- mount[i].device[mount[i].devicelen-1] == ':'))
+ if (pathbuf[mount[i].pathlen] != '/'
+ && strncmp (mount[i].device, "\\\\.\\", 4))
p[j++] = '\\';
strcpy (p + j, pathbuf + mount[i].pathlen);
backslashify (p, p, trailing_slash_p);
- Raw text -