rpm2cpio: handle unseekable input correctly
function old new delta
data_skip 14 20 +6
seek_by_jump 67 72 +5
data_align 81 84 +3
seek_by_read 20 19 -1
skip_header 99 94 -5
rpm2cpio_main 183 177 -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/3 up/down: 14/-12) Total: 2 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/archival/libunarchive/data_skip.c b/archival/libunarchive/data_skip.c
index 438750f..06d3dce 100644
--- a/archival/libunarchive/data_skip.c
+++ b/archival/libunarchive/data_skip.c
@@ -8,5 +8,5 @@
void FAST_FUNC data_skip(archive_handle_t *archive_handle)
{
- archive_handle->seek(archive_handle, archive_handle->file_header->size);
+ archive_handle->seek(archive_handle->src_fd, archive_handle->file_header->size);
}