Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-04-21 00:42:14 +0400
committerChristopher Faylor <me@cgf.cx>2000-04-21 00:42:14 +0400
commitdb64ab89f0f0ded360c8f0975a96666281060b35 (patch)
tree2d0daa5a68e14f3df314b04bd6adddea0cd60386 /winsup/cygwin/path.cc
parentbf921462e7397c150e1e45d739f0728989eaef82 (diff)
* path.cc (normalize_posix_path): Previous change failed to take root
access into account.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index fd4973f12..9b9d37e06 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -620,7 +620,7 @@ normalize_posix_path (const char *cwd, const char *src, char *dst)
}
}
if (dst > (dst_start + 1) && dst[-1] == '.' && SLASH_P (dst[-2]))
- dst -= 2;
+ dst -= dst[2] ? 2 : 1;
*dst = 0;
debug_printf ("%s = normalize_posix_path (%s)", dst_start, src_start);
return 0;