diff options
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index b878920..a0f4ebd 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -609,7 +609,11 @@ normalize_posix_path (const char *src, char *dst) } dst = strchr (dst, '\0'); if (*src == '.') - goto sawdot; + { + if (dst == dst_start + 1 && *dst_start == '/') + --dst; + goto sawdot; + } if (dst > dst_start && !isslash (dst[-1])) *dst++ = '/'; } |