FreeBSD tar errors on valid empty tar.gz

Steven Hartland killing at multiplay.co.uk
Thu Jan 10 15:59:57 PST 2008


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

    Regards
    Steve

----- Original Message ----- 
From: "Chuck Swiger" <cswiger at mac.com>

> I can't seem to produce this on a 6.3 (prerelease, built mid December  
> 2007) system:
> 
> 1% touch empty.tar.gz
> 2% tar ztf empty.tar.gz
> 3% gtar ztf empty.tar.gz
> gzip: (stdin): unexpected end of file
> gtar: Child returned status 1
> gtar: Error exit delayed from previous errors
> 
> 4% tar --version
> bsdtar 1.9.3 - libarchive 1.9.3
> 5% gtar --version
> tar (GNU tar) 1.18
> 
> Regards,
> -- 
> -Chuck
> 
>

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster at multiplay.co.uk.



More information about the freebsd-stable mailing list