diff options
author | Christopher Faylor <me@cgf.cx> | 2003-12-05 04:33:40 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-12-05 04:33:40 +0000 |
commit | 78f3155cedd30008952ff9e2c3c8176775ec4890 (patch) | |
tree | 23bde970676e8cf391776fd3779ce3a4bd69b2d5 /winsup | |
parent | 57e6aca6677838a2fcaaad3785ba8629821c5bd0 (diff) | |
download | newlib-78f3155cedd30008952ff9e2c3c8176775ec4890.zip newlib-78f3155cedd30008952ff9e2c3c8176775ec4890.tar.gz newlib-78f3155cedd30008952ff9e2c3c8176775ec4890.tar.bz2 |
* path.cc (slash_unc_prefix_p): Allow '.' as a valid character after '\\' in a
UNC path.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/path.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 893d594..08445e4 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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> diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index ea8009a..a88ad6f 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; |