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
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-05-08 01:06:08 +0400
committerChristopher Faylor <me@cgf.cx>2005-05-08 01:06:08 +0400
commit3f6494e216ea635c65c8ee2b35ccda6795f4b605 (patch)
tree9129c729be7b3b7a81c38b8f1783d09097016931 /winsup
parentbbb33812896335e0169e024a2adb9e6387f680cc (diff)
* path.cc (normalize_posix_path): Don't treat '//' specially since newer
versions of bash now get this right.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/cygtls.h1
-rw-r--r--winsup/cygwin/path.cc2
3 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 721fc33f0..ed530bcb3 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2005-05-07 Christopher Faylor <cgf@timesys.com>
+ * path.cc (normalize_posix_path): Don't treat '//' specially since
+ newer versions of bash now get this right.
+
+2005-05-07 Christopher Faylor <cgf@timesys.com>
+
* devices.cc: Regenerate with correct name for dev_netdrive_storage.
2005-05-06 Christopher Faylor <cgf@timesys.com>
diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h
index 9148e2cf8..18f715316 100644
--- a/winsup/cygwin/cygtls.h
+++ b/winsup/cygwin/cygtls.h
@@ -21,6 +21,7 @@ details. */
#define CYGTLS_INITIALIZED 0x43227
#define CYGTLS_EXCEPTION (0x43227 + true)
+#define CYGTLSMAGIC "D0Ub313v31nm&G1c?";
#ifndef CYG_MAX_PATH
# define CYG_MAX_PATH 260
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++ = '/';