* path.cc (path_conv::check): Don't bail out with error if path is "//".

This commit is contained in:
Corinna Vinschen 2004-05-12 14:04:23 +00:00
parent 191ea07aa5
commit 8d8bc1e139
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-05-12 Corinna Vinschen <corinna@vinschen.de>
* path.cc (path_conv::check): Don't bail out with error if path is "//".
2004-05-12 Corinna Vinschen <corinna@vinschen.de>
* cygheap.h (struct init_cygheap): Add mt_h member.

View File

@ -559,7 +559,7 @@ path_conv::check (const char *src, unsigned opt,
not by native NT functions. */
while (tail[-1] == '.' || tail[-1] == ' ')
tail--;
if (isslash (tail[-1]))
if (tail > path_copy + 1 && isslash (tail[-1]))
{
error = ENOENT;
return;