Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jan 2008 13:23:05 +1100
From:      Sean Winn <sean@gothic.net.au>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        Steven Hartland <killing@multiplay.co.uk>, Kris Kennaway <kris@FreeBSD.org>, freebsd-stable@freebsd.org
Subject:   Re: FreeBSD tar errors on valid empty tar.gz
Message-ID:  <12B49205-CD31-40C8-9551-5A2F2F8EDCF4@gothic.net.au>
In-Reply-To: <21AE9C4D-646B-4940-8708-140FEE7C46C9@mac.com>
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> <21AE9C4D-646B-4940-8708-140FEE7C46C9@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 11/01/2008, at 11:47 AM, Chuck Swiger wrote:

> 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
>

Actually, that's slightly different to the problem, in that its  
creating a 0 byte tar file (which was always OK)

However, the 'empty' file is fine in 6.3 as well

13:19 Fri 11-Jan sean@visi [~] tar czf test.tgz --files-from /dev/null
13:19 Fri 11-Jan sean@visi [~] tar tvzf test.tgz
13:19 Fri 11-Jan sean@visi [~] uname -msr
FreeBSD 6.3-RC2 i386
13:19 Fri 11-Jan sean@visi [~] ls -l test.tgz
-rw-r--r--    1 sean     sean           45 Jan 11 13:19 test.tgz


> Regards,
> -- 
> -Chuck
>
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable- 
> unsubscribe@freebsd.org"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?12B49205-CD31-40C8-9551-5A2F2F8EDCF4>