* path.cc (normalize_posix_path): Start checking path before ".." at

dst, rather than at dst_start, otherwise suffer loss of one leading
	slash in case of UNC paths.
This commit is contained in:
Corinna Vinschen
2013-07-18 10:11:33 +00:00
parent e6f4f3f7ee
commit aff6ef0db4
2 changed files with 8 additions and 2 deletions

View File

@ -312,8 +312,8 @@ normalize_posix_path (const char *src, char *dst, char *&tail)
if (check_parent)
{
*tail = 0;
debug_printf ("checking %s before '..'", dst_start);
path_conv head (dst_start);
debug_printf ("checking %s before '..'", dst);
path_conv head (dst);
if (!head.isdir())
return ENOENT;
check_parent = false;