summaryrefslogtreecommitdiff
path: root/receiver.c
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2023-04-29 07:45:52 -0700
committerWayne Davison <wayne@opencoder.net>2023-04-29 07:56:27 -0700
commitfe95a9369ac7a1d8d47b036094f91946cacccf53 (patch)
tree2f6db2fefbe5e0f8e2df2b0b374f9f2f476bdfb6 /receiver.c
parent6ae7f4085a5012038c29ae1c70f626cae7714b69 (diff)
downloadrsync-fe95a9369ac7a1d8d47b036094f91946cacccf53.tar.gz
Fix issue with trailing --sparse --inplace blocks.
Fixes #450.
Diffstat (limited to 'receiver.c')
-rw-r--r--receiver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/receiver.c b/receiver.c
index c9d7e01d..3061eeb4 100644
--- a/receiver.c
+++ b/receiver.c
@@ -372,7 +372,7 @@ static int receive_data(int f_in, char *fname_r, int fd_r, OFF_T size_r,
if (fd != -1 && offset > 0) {
if (sparse_files > 0) {
- if (sparse_end(fd, offset) != 0)
+ if (sparse_end(fd, offset, updating_basis_or_equiv) != 0)
goto report_write_error;
} else if (flush_write_file(fd) < 0) {
report_write_error: