From: Grzegorz Antoniak Date: Mon, 1 Oct 2018 09:13:08 +0000 (+0200) Subject: Revert "xar: fix bad seek in move_reading_point()" X-Git-Tag: v3.4.0~175^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95b3c5441ff17dabede42b4a0258a3524772acdf;p=thirdparty%2Flibarchive.git Revert "xar: fix bad seek in move_reading_point()" This reverts commit 5a837b80fe94cec2aeee77751a9b14386167c509. --- diff --git a/libarchive/archive_read_support_format_xar.c b/libarchive/archive_read_support_format_xar.c index 4c3d50a10..602fc7722 100644 --- a/libarchive/archive_read_support_format_xar.c +++ b/libarchive/archive_read_support_format_xar.c @@ -967,7 +967,7 @@ move_reading_point(struct archive_read *a, uint64_t offset) return ((int)step); xar->offset += step; } else { - int64_t pos = __archive_read_seek(a, xar->h_base + offset, SEEK_SET); + int64_t pos = __archive_read_seek(a, offset, SEEK_SET); if (pos == ARCHIVE_FAILED) { archive_set_error(&(a->archive), ARCHIVE_ERRNO_MISC,