diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 893d59489..08445e463 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2003-12-04 Christopher Faylor + + * path.cc (slash_unc_prefix_p): Allow '.' as a valid character after + '\\' in a UNC path. + 2003-12-04 Christopher Faylor * exceptions.cc (setup_handler): Remove ill-advised debugging output. diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index ea8009af0..a88ad6fc1 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -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;