bin/47560: tar 'z' option gzip'd output has extra garbage
Tim Kientzle
tim at kientzle.com
Sun Apr 4 10:50:24 PDT 2004
The following reply was made to PR bin/47560; it has been noted by GNATS.
From: Tim Kientzle <tim at kientzle.com>
To: freebsd-gnats-submit at FreeBSD.org, archie at packetdesign.com
Cc:
Subject: Re: bin/47560: tar 'z' option gzip'd output has extra garbage
Date: Sun, 04 Apr 2004 10:45:45 -0700
This behavior is by design.
Archives written to tape, floppy, or other block devices
must be padded to a full block size. In the case
of stdout, tar cannot know the final destination, so
it conservatively assumes the padding is necessary.
When writing directly to a regular file
tar cvzf file.tgz
the padding is not added, as tar can correctly
determine that it is not necessary.
My 'bsdtar' implementation behaves the same way
for the same reasons.
More information about the freebsd-bugs
mailing list