From 78f3155cedd30008952ff9e2c3c8176775ec4890 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 5 Dec 2003 04:33:40 +0000 Subject: [PATCH] * path.cc (slash_unc_prefix_p): Allow '.' as a valid character after '\\' in a UNC path. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/path.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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;