summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-05-07 21:06:08 +0000
committerChristopher Faylor <me@cgf.cx>2005-05-07 21:06:08 +0000
commit3f6494e216ea635c65c8ee2b35ccda6795f4b605 (patch)
tree9129c729be7b3b7a81c38b8f1783d09097016931 /winsup/cygwin/path.cc
parentbbb33812896335e0169e024a2adb9e6387f680cc (diff)
downloadcygnal-3f6494e216ea635c65c8ee2b35ccda6795f4b605.tar.gz
cygnal-3f6494e216ea635c65c8ee2b35ccda6795f4b605.tar.bz2
cygnal-3f6494e216ea635c65c8ee2b35ccda6795f4b605.zip
* path.cc (normalize_posix_path): Don't treat '//' specially since newer
versions of bash now get this right.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 2b64989ae..49aeea4b3 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -235,7 +235,7 @@ normalize_posix_path (const char *src, char *dst, char *&tail)
*tail++ = '/';
}
/* Two leading /'s? If so, preserve them. */
- else if (isslash (src[1]) && src[2] && !isslash (src[2]))
+ else if (isslash (src[1]) && !isslash (src[2]))
{
*tail++ = '/';
*tail++ = '/';