Red Hat Bugzilla – Bug 390
tar with compression over pipe produces error
Last modified: 2008-05-01 11:37:48 EDT
When I tar and compress a file and send this over a pipe
I get the following strange result:
[ppe@zaphod ppe]$ tar czO recipes.ps | tar tzf -
gzip: stdin: decompression OK, trailing garbage ignored
tar: Child returned status 2
tar: Error exit delayed from previous errors
The error is causing trouble when using "tar z" within ftp.
So I am using now "tar | gzip -c" within ftp, which is
working fine. Still, tar should not send the trailing stuff
when writing to stdout (I think this is only intented when
writing to tape to fill the last block). The Tar z works
fine on other linux or unix derivates.
------- Email Received From Peter Englmaier <email@example.com> 03/27/99 17:09 -------
If I apply your patch, does that also fix the original problem (
using tar z within ftp)?
Your (corrected) patch is in tar-1.12-9. Thanks.