Willy Gfn wrote:
> Hello,
>
> The attached patch makes tar read again from a pipe in case less bytes
> are read than expected.
> This prevent a bug where it fails to extract files correctly because
> not enough bytes are read from, eg, a pipe hooked to a decompression
> program.
Just realised there is a bug in my patch. We should only keep reading
if read() returns more than 0 bytes, otherwise the functions returns.
Updated patch attached.
Cheers!
Received on Fri Feb 03 2017 - 18:35:54 CET