* path.cc (path_conv::check): Don't strip the trailing slash from a path

consisting only of two slashes.
This commit is contained in:
Christopher Faylor 2004-12-23 15:26:38 +00:00
parent 4ee52924a6
commit aad93aea3e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2004-12-23 Christopher Faylor <cgf@timesys.com>
Corinna Vinschen <corinna@vinschen.de>
* path.cc (path_conv::check): Don't strip the trailing slash from a
path consisting only of two slashes.
2004-12-23 Christopher Faylor <cgf@timesys.com>
* cygthread.cc (cygthread::stub): Detect if thread function wants to

View File

@ -542,7 +542,7 @@ path_conv::check (const char *src, unsigned opt,
/* Detect if the user was looking for a directory. We have to strip the
trailing slash initially while trying to add extensions but take it
into account during processing */
if (tail > path_copy + 1 && isslash (tail[-1]))
if (tail > path_copy + 2 && isslash (tail[-1]))
{
need_directory = 1;
*--tail = '\0';