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:
authorCorinna Vinschen <corinna@vinschen.de>2011-06-18 12:36:59 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-06-18 12:36:59 +0400
commit787908c1731aeb56fe3a8a8e4caf396885146fff (patch)
treede957351d498e80356d30c9950db7d7c244b032d /winsup/cygwin/path.cc
parent8dbc35cd764884d852c6e4c9b41c04c417c5f545 (diff)
* path.cc (normalize_win32_path): Skip all slashes after recognizing
a ".." path component. Add comment.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 7b4f124e7..d3e5bb6db 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1258,7 +1258,8 @@ normalize_win32_path (const char *src, char *dst, char *&tail)
while (tail > dst + 1 && tail[-1] != '\\' && tail[-2] != ':')
tail--;
src += 2;
- if (isdirsep (*src))
+ /* Skip /'s to the next path component. */
+ while (isdirsep (*src))
src++;
}
}