* path.cc (normalize_win32_path): Skip all slashes after recognizing

a ".." path component.  Add comment.
This commit is contained in:
Corinna Vinschen 2011-06-18 08:36:59 +00:00
parent 8dbc35cd76
commit 787908c173
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-06-18 Corinna Vinschen <corinna@vinschen.de>
* path.cc (normalize_win32_path): Skip all slashes after recognizing
a ".." path component. Add comment.
2011-06-17 Corinna Vinschen <corinna@vinschen.de>
* fhandler.cc (fhandler_base::open): Drop local create_options variable.

View File

@ -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++;
}
}