[PATCH] tar: assume file size of 0 for hardlinks
Denys Vlasenko
vda.linux at googlemail.com
Fri Jul 29 06:36:37 UTC 2011
On Thursday 28 July 2011 19:29, Ian Wienand wrote:
> Hi,
>
> I recently came across a tar file created by an older version of
> Python that had a file-size set for a hardlink. Currently busybox
> assumes the file-size is zero but doesn't really check, so
> consequently tar skipped ahead and thought the rest of the file was
> corrupt.
>
> This is a python bug (a bit of searching found [1]), but as they say
> the nice thing about standards is that there are so many choose from.
> It appears it is reasonable to just always set this to zero, and then
> you can handle these buggy files if need be.
I applied your fix, thanks!
--
vda
More information about the busybox
mailing list