From: Wayne Davison Date: Thu, 14 Apr 2005 01:42:13 +0000 (+0000) Subject: Support the reception of a file-transfer header without xfer data X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/b10917a426d5e5b6815a74584acac8c25c0df273 Support the reception of a file-transfer header without xfer data when we're on the server side and --only-write-batch was specified. --- 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; }