OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edb9552
)
* path.cc (normalize_win32_path): Don't add a trailing '\' if the cwd returns a
author
cgf
<cgf>
Tue, 11 Nov 2008 03:51:55 +0000
(
03:51
+0000)
committer
cgf
<cgf>
Tue, 11 Nov 2008 03:51:55 +0000
(
03:51
+0000)
path with a trailing '\'.
winsup/cygwin/ChangeLog
patch
|
blob
|
history
winsup/cygwin/path.cc
patch
|
blob
|
history
diff --git
a/winsup/cygwin/ChangeLog
b/winsup/cygwin/ChangeLog
index
5e7870a
..
c8755b8
100644
(file)
--- a/
winsup/cygwin/ChangeLog
+++ b/
winsup/cygwin/ChangeLog
@@
-1,3
+1,8
@@
+2008-11-10 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * path.cc (normalize_win32_path): Don't add a trailing '\' if the cwd
+ returns a path with a trailing '\'.
+
2008-11-07 Christopher Faylor <me+cygwin@cgf.cx>
* pthread.cc (pthread_mutex::_unlock): Avoid unlocking a mutex if the
diff --git
a/winsup/cygwin/path.cc
b/winsup/cygwin/path.cc
index
1f9028a
..
d0eab02
100644
(file)
--- 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++ = '\\';
}
}