* 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:
parent
e6f4f3f7ee
commit
aff6ef0db4
|
@ -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>
|
2013-07-17 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||||
|
|
||||||
* winsup.h (cygbench): Fix declaration to match definition.
|
* winsup.h (cygbench): Fix declaration to match definition.
|
||||||
|
|
|
@ -312,8 +312,8 @@ normalize_posix_path (const char *src, char *dst, char *&tail)
|
||||||
if (check_parent)
|
if (check_parent)
|
||||||
{
|
{
|
||||||
*tail = 0;
|
*tail = 0;
|
||||||
debug_printf ("checking %s before '..'", dst_start);
|
debug_printf ("checking %s before '..'", dst);
|
||||||
path_conv head (dst_start);
|
path_conv head (dst);
|
||||||
if (!head.isdir())
|
if (!head.isdir())
|
||||||
return ENOENT;
|
return ENOENT;
|
||||||
check_parent = false;
|
check_parent = false;
|
||||||
|
|
Loading…
Reference in New Issue