From 0d259ac401b4beeae4474d121fb474b6f8449c98 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 27 Oct 2017 16:57:10 -0400 Subject: [PATCH] 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 --- src/libostree/ostree-repo-static-delta-processing.c | 1 + 1 file changed, 1 insertion(+) 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