From: Nick Bowler Date: Wed, 10 Jun 2009 22:34:44 +0000 (-0400) Subject: Fix upkg_export_seek to actually change the offset field. X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/commitdiff_plain/29be96760e9f08d0165dc1b5ca25cbd0823f9762 Fix upkg_export_seek to actually change the offset field. --- diff --git a/src/libupkg.c b/src/libupkg.c index 8072516..4bb13a3 100644 --- a/src/libupkg.c +++ b/src/libupkg.c @@ -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;