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:
authorChristopher Faylor <me@cgf.cx>2008-11-11 06:51:55 +0300
committerChristopher Faylor <me@cgf.cx>2008-11-11 06:51:55 +0300
commit6865f890873b97cfd2ba828b7211448f38e96d13 (patch)
treef533194365d6be361ea1cb4a3c2a488ca6610682 /winsup/cygwin/path.cc
parentdc74da050c86c0f3be47510b36bd2ee15ed13e8a (diff)
* path.cc (normalize_win32_path): Don't add a trailing '\' if the cwd returns a
path with a trailing '\'.
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 1f9028a4d..d0eab0298 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1346,7 +1346,8 @@ normalize_win32_path (const char *src, char *dst, char *&tail)
else
{
tail = strchr (tail, '\0');
- *tail++ = '\\';
+ if (tail[-1] != '\\')
+ *tail++ = '\\';
}
}