* path.cc (slash_unc_prefix_p): Allow '.' as a valid character after '\\' in a
UNC path.
This commit is contained in:
parent
57e6aca667
commit
78f3155ced
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user