summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
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 62227e671..a728cf86e 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;