From f957e8fdf9d58526736ab0d611829a35c797e251 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 24 Mar 2005 16:38:34 +0000 Subject: [PATCH] If --dry-run is enabled with --read-batch, we must discard the transfer data. --- receiver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/receiver.c b/receiver.c index ff02e20b..9622b0d7 100644 --- a/receiver.c +++ b/receiver.c @@ -438,6 +438,8 @@ int recv_files(int f_in, struct file_list *flist, char *local_name) if (dry_run) { /* log the transfer */ if (!am_server && log_format) log_item(file, &stats, iflags, NULL); + if (read_batch) + discard_receive_data(f_in, file->length); continue; } -- 2.34.1