X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/134f97c9cc42560b888c4bbdaeab4cc338978832..b32d425451798d514b958a978f5f78903ed3327b:/batch.c diff --git a/batch.c b/batch.c index 37529f0d..369d82f6 100644 --- 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; - char *p = get_rule_prefix(ent->match_flags, "- ", 0, &plen); + char *p = get_rule_prefix(ent->rflags, "- ", 0, &plen); 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'); }