Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
106a8ad
)
Aid forward-compatibility in the include/exclude syntax by putting
author
Wayne Davison
<wayned@samba.org>
Thu, 13 Jan 2005 22:01:56 +0000
(22:01 +0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 13 Jan 2005 22:01:56 +0000
(22:01 +0000)
a "- " in front of any name that starts with a '+' or a '-' and would
otherwise be unprefixed (the old code only did this if the '+' or '-'
was followed by a space).
exclude.c
patch
|
blob
|
blame
|
history
diff --git
a/exclude.c
b/exclude.c
index
5c8c7f4
..
86ed20a
100644
(file)
--- a/
exclude.c
+++ b/
exclude.c
@@
-405,7
+405,7
@@
void send_exclude_list(int f)
if (ent->match_flags & MATCHFLG_INCLUDE) {
write_int(f, l + 2);
write_buf(f, "+ ", 2);
- } else if (
(*p == '-' || *p == '+') && p[1] == '
') {
+ } else if (
*p == '-' || *p == '+
') {
write_int(f, l + 2);
write_buf(f, "- ", 2);
} else