From 17e5c6a8f06f6237016004844ebf54cc99634255 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 13 May 2005 21:05:46 +0000 Subject: [PATCH] * path.cc (normalize_posix_path): Do normalization on . and .. after a '//'. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/path.cc | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3321bef8b..65724b137 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-05-13 Christopher Faylor + + * path.cc (normalize_posix_path): Do normalization on . and .. after + a '//'. + 2005-05-13 Corinna Vinschen * fhandler.h (fhandler_netdrive::readdir): Remove useless comment. diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 1bdf75c8b..867240255 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -237,11 +237,7 @@ normalize_posix_path (const char *src, char *dst, char *&tail) } /* Two leading /'s? If so, preserve them. */ else if (isslash (src[1]) && !isslash (src[2])) - { - *tail++ = '/'; - *tail++ = '/'; - src += 2; - } + *tail++ = *src++; while (*src) {