* path.cc (slash_unc_prefix_p): Allow '.' as a valid character after '\\' in a

UNC path.
This commit is contained in:
Christopher Faylor 2003-12-05 04:33:40 +00:00
parent 57e6aca667
commit 78f3155ced
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.

View 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;