Fixed build problem.
[rsync/rsync-patches.git] / ignore-case.diff
index 3703637..81c28b2 100644 (file)
@@ -14,7 +14,15 @@ TODO:
 
 --- 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) {
@@ -103,8 +111,8 @@ TODO:
 +{
 +      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))