bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] extracting multivol archives: no chance to correct sequenc


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] extracting multivol archives: no chance to correct sequence of volumes
Date: Mon, 02 Oct 2006 18:49:25 +0300

Joerg Weilbier <address@hidden> wrote:

> Hi,
> while extracting multivol archives in a violation of right sequence of
> volumes  will cause first a warning (... is  not continued on this
> volume). That's ok,  but if you now take the right volume, you can't
> reach the right way anymore.

Thanks for reporting.

> I suggest this patch (inserting of initialization of current_block in every 
> run of try_new_volume()):

I believe it's better to do so in new_volume, so I installed the
following patch:

Index: src/buffer.c
===================================================================
RCS file: /cvsroot/tar/tar/src/buffer.c,v
retrieving revision 1.106
diff -p -u -r1.106 buffer.c
--- src/buffer.c        6 Jul 2006 20:05:30 -0000       1.106
+++ src/buffer.c        2 Oct 2006 15:40:59 -0000
@@ -1020,7 +1020,8 @@ new_volume (enum access_mode mode)
   assign_string (&volume_label, NULL);
   assign_string (&continued_file_name, NULL);
   continued_file_size = continued_file_offset = 0;
-
+  current_block = record_start;
+
   if (rmtclose (archive) != 0)
     close_warn (*archive_name_cursor);


Regards,
Sergey




reply via email to

[Prev in Thread] Current Thread [Next in Thread]