diff options
| author | Wayne Davison <wayned@samba.org> | 2005-04-14 01:42:13 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2005-04-14 01:42:13 +0000 |
| commit | b10917a426d5e5b6815a74584acac8c25c0df273 (patch) | |
| tree | 8670a3c0c7e7ebf791cf845f5a306daebfca41e7 /receiver.c | |
| parent | 7ae64260e06648beb03ef0c920ae55384ab98802 (diff) | |
| download | android_external_rsync-b10917a426d5e5b6815a74584acac8c25c0df273.tar.gz android_external_rsync-b10917a426d5e5b6815a74584acac8c25c0df273.tar.bz2 android_external_rsync-b10917a426d5e5b6815a74584acac8c25c0df273.zip | |
Support the reception of a file-transfer header without xfer data
when we're on the server side and --only-write-batch was specified.
Diffstat (limited to 'receiver.c')
| -rw-r--r-- | receiver.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |
