mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-09-12 21:28:25 -04:00
Avoid a crash with --append-verify when discarding the received data.
Fixes bug 6293.
This commit is contained in:
1 parent
3b22184d4c
commit
b32fd63459
1 file changed
+1
-1
+1
-1
@@ -228,7 +228,7 @@ static int receive_data(int f_in, char *fname_r, int fd_r, OFF_T size_r,
|
||||
sum.flength = (OFF_T)sum.count * sum.blength;
|
||||
if (sum.remainder)
|
||||
sum.flength -= sum.blength - sum.remainder;
|
||||
if (append_mode == 2) {
|
||||
if (append_mode == 2 && mapbuf) {
|
||||
for (j = CHUNK_SIZE; j < sum.flength; j += CHUNK_SIZE) {
|
||||
if (INFO_GTE(PROGRESS, 1))
|
||||
show_progress(offset, total_size);
|
||||
|
||||
Reference in new issue
Block a user