From 951b0370df3312cec343c590007301d3edd1be80 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Wed, 19 May 2004 14:26:25 +0000 Subject: [PATCH] (skip_file): Use seek_archive() if possible. --- src/list.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/list.c b/src/list.c index cb207a9..3166e68 100644 --- a/src/list.c +++ b/src/list.c @@ -1237,6 +1237,19 @@ skip_file (off_t size) save_sizeleft = size; } + if (seekable_archive) + { + off_t nblk = seek_archive (size); + if (nblk >= 0) + { + size -= nblk * BLOCKSIZE; + if (multi_volume_option) /* Argh.. */ + save_sizeleft -= nblk * BLOCKSIZE; + } + else + seekable_archive = false; + } + while (size > 0) { x = find_next_block (); -- 2.45.2