* path.cc (normalize_posix_path): Don't treat '//' specially since newer

versions of bash now get this right.
This commit is contained in:
Christopher Faylor
2005-05-07 21:06:08 +00:00
parent bbb3381289
commit 3f6494e216
3 changed files with 7 additions and 1 deletions

View File

@ -235,7 +235,7 @@ normalize_posix_path (const char *src, char *dst, char *&tail)
*tail++ = '/';
}
/* Two leading /'s? If so, preserve them. */
else if (isslash (src[1]) && src[2] && !isslash (src[2]))
else if (isslash (src[1]) && !isslash (src[2]))
{
*tail++ = '/';
*tail++ = '/';