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
Change filter MATCHFLGs to FILTRULEs.
[rsync/rsync.git]
/
batch.c
diff --git
a/batch.c
b/batch.c
index
37529f0
..
369d82f
100644
(file)
--- a/
batch.c
+++ b/
batch.c
@@
-196,10
+196,10
@@
static void write_filter_rules(int fd)
write_sbuf(fd, " <<'#E#'\n");
for (ent = filter_list.head; ent; ent = ent->next) {
unsigned int plen;
write_sbuf(fd, " <<'#E#'\n");
for (ent = filter_list.head; ent; ent = ent->next) {
unsigned int plen;
- char *p = get_rule_prefix(ent->
match_
flags, "- ", 0, &plen);
+ char *p = get_rule_prefix(ent->
r
flags, "- ", 0, &plen);
write_buf(fd, p, plen);
write_sbuf(fd, ent->pattern);
write_buf(fd, p, plen);
write_sbuf(fd, ent->pattern);
- if (ent->
match_flags & MATCHFLG
_DIRECTORY)
+ if (ent->
rflags & FILTRULE
_DIRECTORY)
write_byte(fd, '/');
write_byte(fd, eol_nulls ? 0 : '\n');
}
write_byte(fd, '/');
write_byte(fd, eol_nulls ? 0 : '\n');
}