FreeBSD tar errors on valid empty tar.gz

Roland Smith rsmith at xs4all.nl
Thu Jan 10 16:16:42 PST 2008


On Thu, Jan 10, 2008 at 11:55:52PM -0000, Steven Hartland wrote:
> A totally empty file is not valid try the following test:-
>> touch empty
>> tar cvzf test.tar.gz --files-from empty
>> tar tvzf test.tar.gz tar: Unrecognized archive format: Inappropriate file 
>> type or format
>> tar --version
>> bsdtar 1.2.53 - libarchive 1.2.53
>> gtar tvzf test.tar.gz
>> gtar --version
>> tar (GNU tar) 1.15.1
> 
> Tested on: FreeBSD 6.2-RELEASE-p9

No problem on 7.0-BETA3 (amd64);

touch empty
tar cvzf test.tar.gz --files-from empty
tar tvzf test.tar.gz
tar --version
bsdtar 2.2.5 - libarchive 2.2.4
ls -l empty test.tar.gz 
-rw-r--r--  1 rsmith  rsmith   0 Jan 11 01:14 empty
-rw-r--r--  1 rsmith  rsmith  45 Jan 11 01:14 test.tar.gz

Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20080111/5404c21f/attachment.pgp


More information about the freebsd-stable mailing list