lib/deltas: Fix change to use pread() in write opcode
Fixes: 93457071cb "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
This commit is contained in:
1 parent
de0e015908
commit
0d259ac401
1 file changed
+1
@@ -745,6 +745,7 @@ dispatch_write (OstreeRepo *repo,
|
||||
return FALSE;
|
||||
|
||||
content_size -= bytes_read;
|
||||
content_offset += bytes_read;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user