X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/a0009fc30dc850fadc16a07ce7918759751d88ce..bdedced84b7f446f818efd4d25b8985285a50009:/receiver.c diff --git a/receiver.c b/receiver.c index 6e2bd1c9..abe1f663 100644 --- a/receiver.c +++ b/receiver.c @@ -462,7 +462,8 @@ int recv_files(int f_in, struct file_list *flist, char *local_name) } if (write_batch < 0) { log_item(file, &stats, iflags, NULL); - discard_receive_data(f_in, file->length); + if (!am_server) + discard_receive_data(f_in, file->length); continue; }