lib/deltas: Fix change to use pread() in write opcode
authorColin Walters <walters@verbum.org>
Fri, 27 Oct 2017 20:57:10 +0000 (16:57 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 30 Oct 2017 19:03:16 +0000 (19:03 +0000)
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

index 7517046edb1fde5bcecd61ab5e9e41525b0d954f..87b5c8c988bd22c6f4a60b0a4aa9836acee3e1fe 100644 (file)
@@ -745,6 +745,7 @@ dispatch_write (OstreeRepo                 *repo,
                 return FALSE;
 
               content_size -= bytes_read;
+              content_offset += bytes_read;
             }
         }
       else