Bug 390 - tar with compression over pipe produces error
tar with compression over pipe produces error
Product: Red Hat Linux
Classification: Retired
Component: tar (Show other bugs)
i386 Linux
low Severity low
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Depends On:
  Show dependency treegraph
Reported: 1998-12-11 11:45 EST by ppe
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-03-29 12:17:09 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description ppe 1998-12-11 11:45:59 EST
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 <ppe@pa.uky.edu> 03/27/99 17:09 -------
Comment 1 Jeff Johnson 1999-03-27 18:17:59 EST
If I apply your patch, does that also fix the original problem (
using tar z within ftp)?
Comment 2 Jeff Johnson 1999-03-29 12:17:59 EST
Your (corrected) patch is in tar-1.12-9. Thanks.

Note You need to log in before you can comment on or make changes to this bug.