diff options
| author | Wayne Davison <wayned@samba.org> | 2005-03-24 16:38:34 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2005-03-24 16:38:34 +0000 |
| commit | f957e8fdf9d58526736ab0d611829a35c797e251 (patch) | |
| tree | fba45af3ed38b1360917a4d7eab06b9df23be801 /receiver.c | |
| parent | 822012eea9fd711578f3327c3c1011a5060b94a7 (diff) | |
| download | android_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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |
