--- old/exclude.c
+++ new/exclude.c
-@@ -583,16 +583,15 @@ static int rule_matches(char *name, stru
+@@ -21,6 +21,7 @@
+ */
+
+ #include "rsync.h"
++#include "ifuncs.h"
+
+ extern int verbose;
+ extern int am_server;
+@@ -583,16 +584,15 @@ static int rule_matches(char *name, stru
if (litmatch_array(pattern, strings, slash_handling))
return ret_match;
} else if (anchored_match) {
+{
+ extern int ignore_case;
+ if (ignore_case)
-+ return strcasecmp(s1, s2, n) == 0;
-+ return strcmp(s1, s2, n) == 0;
++ return strncasecmp(s1, s2, n) == 0;
++ return strncmp(s1, s2, n) == 0;
+}
+
+#define strNE(s1,s2) (!strEQ(s1,s2))