]> Dogcows Code - chaz/tar/commitdiff
(skip_file): Use seek_archive() if possible.
authorSergey Poznyakoff <gray@gnu.org.ua>
Wed, 19 May 2004 14:26:25 +0000 (14:26 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Wed, 19 May 2004 14:26:25 +0000 (14:26 +0000)
src/list.c

index cb207a982b9633eec275daf8ca8fa287139f3002..3166e686c1ca43970807805f75da15a87204a004 100644 (file)
@@ -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 ();
This page took 0.027938 seconds and 4 git commands to generate.