* path.cc (normalize_posix_path): Do normalization on . and .. after a '//'.
This commit is contained in:
parent
1402b12a09
commit
17e5c6a8f0
|
@ -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>
|
||||
|
||||
* fhandler.h (fhandler_netdrive::readdir): Remove useless comment.
|
||||
|
|
|
@ -237,11 +237,7 @@ normalize_posix_path (const char *src, char *dst, char *&tail)
|
|||
}
|
||||
/* Two leading /'s? If so, preserve them. */
|
||||
else if (isslash (src[1]) && !isslash (src[2]))
|
||||
{
|
||||
*tail++ = '/';
|
||||
*tail++ = '/';
|
||||
src += 2;
|
||||
}
|
||||
*tail++ = *src++;
|
||||
|
||||
while (*src)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue