diff options
author | Christopher Faylor <me@cgf.cx> | 2005-05-14 01:05:46 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-05-14 01:05:46 +0400 |
commit | 17e5c6a8f06f6237016004844ebf54cc99634255 (patch) | |
tree | 883aa18e88506e0d1bf1ad29ab7e8ab374ed97a4 /winsup/cygwin | |
parent | 1402b12a095478bff3c8ad584112e64a1b7fd1e1 (diff) |
* path.cc (normalize_posix_path): Do normalization on . and .. after a '//'.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <cgf@timesys.com> + + * path.cc (normalize_posix_path): Do normalization on . and .. after + a '//'. + 2005-05-13 Corinna Vinschen <corinna@vinschen.de> * 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) { |