Otherwise when write_sparse is called for the next file, do_punch_hole will be called with a `pos` that's not actually the current position in file, causing it to fail. --- fileio.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/fileio.c b/fileio.c
index bd2e36ae..32dc62da 100644
--- a/fileio.c
+++ b/fileio.c
@@ -44,6 +44,8 @@ int sparse_end(int f, OFF_T size)
{
int ret;
+ sparse_past_write = 0;
+
if (!sparse_seek)
return 0;
--
2.26.2
signature.asc
Description: PGP signature
-- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
