X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/0e36d9da420af7c7e49bfd5e2c5aad712a85b633..5c6fc4a6a3328d9995377efdc05a90987b96d9a2:/match.c diff --git a/match.c b/match.c index 7bf2cf4e..6909fca3 100644 --- a/match.c +++ b/match.c @@ -322,6 +322,9 @@ void match_sums(int f, struct sum_struct *s, struct map_struct *buf, OFF_T len) } sum_end(file_sum); + /* If we had a read error, send a bad checksum. */ + if (buf && buf->status != 0) + file_sum[0]++; if (verbose > 2) rprintf(FINFO,"sending file_sum\n");