Matt McCutchen's Web Site
/
rsync
/
rsync-patches.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
My improved version of a connection-timeout patch.
[rsync/rsync-patches.git]
/
ignore-case.diff
diff --git
a/ignore-case.diff
b/ignore-case.diff
index
3703637
..
81c28b2
100644
(file)
--- a/
ignore-case.diff
+++ b/
ignore-case.diff
@@
-14,7
+14,15
@@
TODO:
--- old/exclude.c
+++ new/exclude.c
--- 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) {
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)
+{
+ extern int ignore_case;
+ if (ignore_case)
-+ return strcasecmp(s1, s2, n) == 0;
-+ return strcmp(s1, s2, n) == 0;
++ return str
n
casecmp(s1, s2, n) == 0;
++ return str
n
cmp(s1, s2, n) == 0;
+}
+
+#define strNE(s1,s2) (!strEQ(s1,s2))
+}
+
+#define strNE(s1,s2) (!strEQ(s1,s2))