* path.cc (normalize_posix_path): Do normalization on . and .. after a '//'.

This commit is contained in:
Christopher Faylor 2005-05-13 21:05:46 +00:00
parent 1402b12a09
commit 17e5c6a8f0
2 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2005-05-13 Christopher Faylor <cgf@timesys.com>
* path.cc (normalize_posix_path): Do normalization on . and .. after
a '//'.
2005-05-13 Corinna Vinschen <corinna@vinschen.de> 2005-05-13 Corinna Vinschen <corinna@vinschen.de>
* fhandler.h (fhandler_netdrive::readdir): Remove useless comment. * fhandler.h (fhandler_netdrive::readdir): Remove useless comment.

View File

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