aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-03-30 20:01:43 +0000
committerCorinna Vinschen <corinna@vinschen.de>2005-03-30 20:01:43 +0000
commite8cf344cf6d9bef0e32777803fc1d2fb4c7d6b59 (patch)
tree11b15c9d4a89c83039ee008ebfa642f7e9cb3529 /winsup
parent18ef968f400d3348655485145f8bf883253ae53e (diff)
downloadnewlib-e8cf344cf6d9bef0e32777803fc1d2fb4c7d6b59.zip
newlib-e8cf344cf6d9bef0e32777803fc1d2fb4c7d6b59.tar.gz
newlib-e8cf344cf6d9bef0e32777803fc1d2fb4c7d6b59.tar.bz2
* path.cc (symlink_info::case_check): Ignore trailing characters
in paths when comparing case.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/path.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index fc987ca..3795675 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-30 Igor Pechtchanski <pechtcha@cs.nyu.edu>
+
+ * path.cc (symlink_info::case_check): Ignore trailing characters
+ in paths when comparing case.
+
2005-03-30 Christopher Faylor <cgf@timesys.com>
* environ.h (win_env::immediate): Declare new field.
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 62227e6..a728cf8 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -3230,7 +3230,7 @@ symlink_info::case_check (char *path)
FindClose (h);
/* If that part of the component exists, check the case. */
- if (strcmp (c, data.cFileName))
+ if (strncmp (c, data.cFileName, strlen (data.cFileName)))
{
case_clash = true;