From 0a130d510dc5272dc2fc7bc5a116f0694c8bd2a9 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 28 Aug 2009 21:09:51 +0200 Subject: 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 --- archival/libunarchive/data_align.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archival/libunarchive/data_align.c') diff --git a/archival/libunarchive/data_align.c b/archival/libunarchive/data_align.c index 9f2e8432f..0c8542bf5 100644 --- a/archival/libunarchive/data_align.c +++ b/archival/libunarchive/data_align.c @@ -10,6 +10,6 @@ void FAST_FUNC data_align(archive_handle_t *archive_handle, unsigned boundary) { unsigned skip_amount = (boundary - (archive_handle->offset % boundary)) % boundary; - archive_handle->seek(archive_handle, skip_amount); + archive_handle->seek(archive_handle->src_fd, skip_amount); archive_handle->offset += skip_amount; } -- cgit v1.2.3