X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/5befb07913169aa9449c29914401fccaa544677a..b9bf3c0fb2717fc4b0a3c0fdb79f365121e2ded7:/ignore-case.diff diff --git a/ignore-case.diff b/ignore-case.diff index 3703637..81c28b2 100644 --- a/ignore-case.diff +++ b/ignore-case.diff @@ -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))