Fixed problem with -C when we're the sender, the remote is using an
authorWayne Davison <wayned@samba.org>
Tue, 26 Apr 2005 15:24:40 +0000 (15:24 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 26 Apr 2005 15:24:40 +0000 (15:24 +0000)
older protocol, and we're not sending the exclude list (i.e. the
user didn't specify --delete or they specified --delete-ignored).

exclude.c

index 5536d8a..f2be6a9 100644 (file)
--- a/exclude.c
+++ b/exclude.c
@@ -715,7 +715,6 @@ static const char *parse_rule_tok(const char *p, uint32 mflags, int xflags,
                        if ((s = RULE_STRCMP(s, "show")) != NULL)
                                ch = 'S';
                        break;
                        if ((s = RULE_STRCMP(s, "show")) != NULL)
                                ch = 'S';
                        break;
-
                default:
                        ch = *s;
                        if (s[1] == ',')
                default:
                        ch = *s;
                        if (s[1] == ',')
@@ -1108,7 +1107,7 @@ static void send_rules(int f_out, struct filter_list_struct *flp)
                    && !(ent->match_flags & MATCHFLG_MERGE_FILE)) {
                        int f = am_sender || protocol_version < 29 ? f_out : -1;
                        send_rules(f, &cvs_filter_list);
                    && !(ent->match_flags & MATCHFLG_MERGE_FILE)) {
                        int f = am_sender || protocol_version < 29 ? f_out : -1;
                        send_rules(f, &cvs_filter_list);
-                       if (f >= 0)
+                       if (f >= 0 || f_out < 0)
                                continue;
                }
                p = get_rule_prefix(ent->match_flags, ent->pattern, 1, &plen);
                                continue;
                }
                p = get_rule_prefix(ent->match_flags, ent->pattern, 1, &plen);