]> git.draconx.ca Git - upkg.git/commitdiff
Fix upkg_export_seek to actually change the offset field.
authorNick Bowler <nbowler@draconx.ca>
Wed, 10 Jun 2009 22:34:44 +0000 (18:34 -0400)
committerNick Bowler <nbowler@draconx.ca>
Wed, 10 Jun 2009 22:34:44 +0000 (18:34 -0400)
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;