Date: Thu, 10 Jan 2008 16:47:15 -0800 From: Chuck Swiger <cswiger@mac.com> 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: <21AE9C4D-646B-4940-8708-140FEE7C46C9@mac.com> In-Reply-To: <4786BB2A.30701@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> <00f201c853e7$aba076b0$b6db87d4@multiplay.co.uk> <4786BB2A.30701@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 10, 2008, at 4:41 PM, Kris Kennaway wrote: >> Not that I'm aware of. gtar works but libarchive tar fails on >> the file it created. > > Yes, in 6.2. What about the report that it works in 6.3? Indeed. Trying to create a tarball using a non-existent list of files returns an error and generates a 0-byte tgz; as previously shown, BSD tar in 6.3 treats that as an empty archive, which seems reasonable, whereas gtar feeds it to gzip which generates an error: 20% tar cvzf test.tar.gz --files-from empty tar: Couldn't open empty: No such file or directory 21% ls -l test.tar.gz -rw-r--r-- 1 chuck chuck 0 Jan 10 19:42 test.tar.gz 22% tar tvzf test.tar.gz 23% gtar tvzf test.tar.gz gzip: (stdin): unexpected end of file gtar: Child returned status 1 gtar: Error exit delayed from previous errors Regards, -- -Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?21AE9C4D-646B-4940-8708-140FEE7C46C9>