Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Doc: "opening tcp connection to %s port %d" is kind of misleading when
[rsync/rsync.git]
/
exclude.c
diff --git
a/exclude.c
b/exclude.c
index
a9d32a3
..
55c48a1
100644
(file)
--- a/
exclude.c
+++ b/
exclude.c
@@
-201,9
+201,11
@@
void add_exclude_list(const char *pattern, struct exclude_struct ***list, int in
if (!*list || !((*list)[len] = make_exclude(pattern, include)))
out_of_memory("add_exclude");
if (!*list || !((*list)[len] = make_exclude(pattern, include)))
out_of_memory("add_exclude");
- if (verbose > 2)
- rprintf(FINFO,"add_exclude(%s)\n",pattern);
-
+ if (verbose > 2) {
+ rprintf(FINFO,"add_exclude(%s,%s)\n",pattern,
+ include ? "include" : "exclude");
+ }
+
(*list)[len+1] = NULL;
}
(*list)[len+1] = NULL;
}
@@
-260,7
+262,10
@@
void send_exclude_list(int f)
extern int remote_version;
extern int list_only, recurse;
extern int remote_version;
extern int list_only, recurse;
- /* this is a complete hack - blame Rusty */
+ /* This is a complete hack - blame Rusty.
+ *
+ * FIXME: This pattern shows up in the output of
+ * report_exclude_result(), which is not ideal. */
if (list_only && !recurse) {
add_exclude("/*/*", 0);
}
if (list_only && !recurse) {
add_exclude("/*/*", 0);
}