From: Colin Walters Date: Fri, 27 Oct 2017 20:57:10 +0000 (-0400) Subject: lib/deltas: Fix change to use pread() in write opcode X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~30^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0d259ac401b4beeae4474d121fb474b6f8449c98;p=ostree.git lib/deltas: Fix change to use pread() in write opcode Fixes: 93457071cb5d47c08b60d3244f9632725634010a "lib/deltas: Use pread() instead of lseek()+read()" Caught this when trying to test alex's patch locally. I am going to review our static delta pulls and try to get something more comprehensive locally. But in the meantime this patch is clearly right. Closes: #1312 Approved by: jlebon --- diff --git a/src/libostree/ostree-repo-static-delta-processing.c b/src/libostree/ostree-repo-static-delta-processing.c index 7517046e..87b5c8c9 100644 --- a/src/libostree/ostree-repo-static-delta-processing.c +++ b/src/libostree/ostree-repo-static-delta-processing.c @@ -745,6 +745,7 @@ dispatch_write (OstreeRepo *repo, return FALSE; content_size -= bytes_read; + content_offset += bytes_read; } } else