* 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

@ -1,3 +1,9 @@
2013-07-18 Corinna Vinschen <corinna@vinschen.de>
* 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.
2013-07-17 Christopher Faylor <me.cygwin2013@cgf.cx>
* winsup.h (cygbench): Fix declaration to match definition.

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;