aboutsummaryrefslogtreecommitdiffstats
path: root/receiver.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-03-24 16:38:34 +0000
committerWayne Davison <wayned@samba.org>2005-03-24 16:38:34 +0000
commitf957e8fdf9d58526736ab0d611829a35c797e251 (patch)
treefba45af3ed38b1360917a4d7eab06b9df23be801 /receiver.c
parent822012eea9fd711578f3327c3c1011a5060b94a7 (diff)
downloadandroid_external_rsync-f957e8fdf9d58526736ab0d611829a35c797e251.tar.gz
android_external_rsync-f957e8fdf9d58526736ab0d611829a35c797e251.tar.bz2
android_external_rsync-f957e8fdf9d58526736ab0d611829a35c797e251.zip
If --dry-run is enabled with --read-batch, we must discard the
transfer data.
Diffstat (limited to 'receiver.c')
-rw-r--r--receiver.c2
1 files changed, 2 insertions, 0 deletions
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;
}