bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] lone zero block errors in 1.13.93


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] lone zero block errors in 1.13.93
Date: Fri, 12 Mar 2004 12:36:35 +0200

I wrote:

> The solution to the problem will be to issue a warning, instead of
> the error, if a single zero block is found at the very end of the
> archive.

Sorry, this wouldn't work. Both archives have arbitrary garbage after
the partial zero record. So, I have installed the following patch:

Index: list.c
===================================================================
RCS file: /cvsroot/tar/tar/src/list.c,v
retrieving revision 1.68
diff -p -u -r1.68 list.c
--- list.c      29 Feb 2004 00:05:31 -0000      1.68
+++ list.c      12 Mar 2004 10:27:26 -0000
@@ -140,6 +140,7 @@ read_and (void (*do_something) (void))
                break;
              WARN ((0, 0, _("A lone zero block at %s"),
                     STRINGIFY_BIGINT (current_block_ordinal (), buf)));
+             break;
            }
          status = prev_status;
          continue;

Regards,
Sergey    




reply via email to

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