OSDN Git Service

* path.cc (slash_unc_prefix_p): Allow '.' as a valid character after '\\' in a
authorcgf <cgf>
Fri, 5 Dec 2003 04:33:39 +0000 (04:33 +0000)
committercgf <cgf>
Fri, 5 Dec 2003 04:33:39 +0000 (04:33 +0000)
UNC path.

winsup/cygwin/ChangeLog
winsup/cygwin/path.cc

index 893d594..08445e4 100644 (file)
@@ -1,5 +1,10 @@
 2003-12-04  Christopher Faylor  <cgf@redhat.com>
 
+       * path.cc (slash_unc_prefix_p): Allow '.' as a valid character after
+       '\\' in a UNC path.
+
+2003-12-04  Christopher Faylor  <cgf@redhat.com>
+
        * exceptions.cc (setup_handler): Remove ill-advised debugging output.
 
 2003-12-04  Corinna Vinschen  <corinna@vinschen.de>
index ea8009a..a88ad6f 100644 (file)
@@ -1076,7 +1076,7 @@ slash_unc_prefix_p (const char *path)
   char *p = NULL;
   int ret = (isdirsep (path[0])
             && isdirsep (path[1])
-            && isalnum (path[2])
+            && (isalnum (path[2]) || path[2] == '.')
             && ((p = strpbrk (path + 3, "\\/")) != NULL));
   if (!ret || p == NULL)
     return ret;