Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2008 15:21:37 -0800
From:      Chuck Swiger <cswiger@mac.com>
To:        Steven Hartland <killing@multiplay.co.uk>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: FreeBSD tar errors on valid empty tar.gz
Message-ID:  <1EBB2F6E-DE1F-4EDE-885F-F8CEB60E6F6A@mac.com>
In-Reply-To: <004901c853dc$54acf230$b6db87d4@multiplay.co.uk>
References:  <004901c853dc$54acf230$b6db87d4@multiplay.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 10, 2008, at 2:58 PM, Steven Hartland wrote:
> Seems our current libarchive? That support FreeBSD's tar  
> implementation has
> a bug where it can create archives it cant read back. This can be seen
> by simply creating an empty tar.gz file and then trying to expand or
> list it.
>
> In doing the above you get the following error:
> tar: Unrecognized archive format: Inappropriate file type or format
>
> N.B. gtar can list and expand the created file without issue.


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1EBB2F6E-DE1F-4EDE-885F-F8CEB60E6F6A>