From fe95a9369ac7a1d8d47b036094f91946cacccf53 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 29 Apr 2023 07:45:52 -0700 Subject: Fix issue with trailing --sparse --inplace blocks. Fixes #450. --- receiver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'receiver.c') 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: -- cgit v1.2.1