]> git.draconx.ca Git - upkg.git/blobdiff - src/libupkg.c
Fix upkg_export_seek to actually change the offset field.
[upkg.git] / src / libupkg.c
index 8072516120a0bed5da998bd82b3a0e08f77b442f..4bb13a3fa7b0f85c55197ead75af52ebc9f77795 100644 (file)
@@ -476,6 +476,7 @@ int upkg_export_seek(struct upkg_file *f, long offset, int whence)
 
        if (rc == 0) {
                f->pkg->priv->last_file = f;
+               f->offset = offset;
                f->eof = 0;
        } else if (f->pkg->priv->last_file == f) {
                f->pkg->priv->last_file = NULL;