diff options
author | Christopher Faylor <me@cgf.cx> | 2003-12-05 07:33:40 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-12-05 07:33:40 +0300 |
commit | 78f3155cedd30008952ff9e2c3c8176775ec4890 (patch) | |
tree | 23bde970676e8cf391776fd3779ce3a4bd69b2d5 /winsup/cygwin/path.cc | |
parent | 57e6aca6677838a2fcaaad3785ba8629821c5bd0 (diff) |
* path.cc (slash_unc_prefix_p): Allow '.' as a valid character after '\\' in a
UNC path.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |