Only append_mode > 0 now indicates option is enabled.
authorWayne Davison <wayned@samba.org>
Thu, 28 Dec 2006 07:54:07 +0000 (07:54 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 28 Dec 2006 07:54:07 +0000 (07:54 +0000)
match.c

diff --git a/match.c b/match.c
index cbc856c..7e8fa02 100644 (file)
--- a/match.c
+++ b/match.c
@@ -314,7 +314,7 @@ void match_sums(int f, struct sum_struct *s, struct map_struct *buf, OFF_T len)
 
        sum_init(checksum_seed);
 
-       if (append_mode) {
+       if (append_mode > 0) {
                OFF_T j = 0;
                for (j = CHUNK_SIZE; j < s->flength; j += CHUNK_SIZE) {
                        if (buf && do_progress)