[Top][All Lists]

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

Re: [Bug-tar] tar -tf quits before EOF?

From: Dustin J. Mitchell
Subject: Re: [Bug-tar] tar -tf quits before EOF?
Date: Sat, 7 Aug 2010 09:54:01 -0500

On Sat, Aug 7, 2010 at 1:29 AM, Sergey Poznyakoff <address@hidden> wrote:
> Not quite so. The end of archive is marked by two zero blocks
> (not being part of any archive member of course). When tar
> sees this marker it exits without attempting to read any further.
> This behavior may be disabled by using the -i (--ignore-zeros)
> command line option.

Thanks - somehow I missed that option (probably by searching for
"zeroes" -- it was late..)

>>   (tar -cf - ChangeLog; cat /dev/zero) |  tar -tf -
>>   ChangeLog
>> (this hangs forever here, and truss or strace shows tar reading a lot
>> of 0's without any _exit(0) action..)
> Looks like you run an older version of tar.  This was the default
> behavior before version 1.21.

It's 1.23, but it's probably patched.  Anyway, I will add the
--ignore-zeros option to Amanda.  Thanks for setting me straight!


Open Source Storage Engineer

reply via email to

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