* path.cc (path_conv::check): Don't bail out with error if path is "//".
This commit is contained in:
parent
191ea07aa5
commit
8d8bc1e139
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue