Date: Fri, 11 Jan 2008 11:19:15 +1100 From: Andrew Reilly <andrew-freebsd@areilly.bpc-users.org> To: Kris Kennaway <kris@FreeBSD.org> Cc: freebsd-stable@freebsd.org, Steven Hartland <killing@multiplay.co.uk> Subject: Re: FreeBSD tar errors on valid empty tar.gz Message-ID: <20080111111915.4281130f@duncan.reilly.home> In-Reply-To: <4786B39B.6020403@FreeBSD.org> References: <004901c853dc$54acf230$b6db87d4@multiplay.co.uk> <1EBB2F6E-DE1F-4EDE-885F-F8CEB60E6F6A@mac.com> <00a801c853e4$5589eb10$b6db87d4@multiplay.co.uk> <4786B39B.6020403@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 11 Jan 2008 01:08:59 +0100 Kris Kennaway <kris@FreeBSD.org> wrote: > 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 > > OK, so it's already fixed? Seems to work OK on my 7-STABLE system. Interestingly, if I follow Steven Hartland's recipe (using --files-from empty), I get a 45-byte .tar.gz file that gzcat's to 10240 zero bytes, but if I leave the "z" off the tar commands, I get an uncompressed file of 1024 zero bytes. Should that happen? In both cases, tar tvf{,z} doesn't whinge about unrecognized formats. Cheers, -- Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080111111915.4281130f>