Commit f957e8fd authored by Wayne Davison's avatar Wayne Davison

If --dry-run is enabled with --read-batch, we must discard the

transfer data.
parent 822012ee
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment