Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Aug 2004 13:34:46 -0700
From:      Tim Kientzle <kientzle@freebsd.org>
To:        Peter Jeremy <PeterJeremy@optushome.com.au>
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit:src/lib/libarchivearchive_read_support_compression_all.c archive_write_set_compression_gzip.c
Message-ID:  <410D53E6.7060406@freebsd.org>
In-Reply-To: <20040730074825.GN3001@cirb503493.alcatel.com.au>
References:  <200407300414.i6U4ElBw068754@repoman.freebsd.org> <20040730074825.GN3001@cirb503493.alcatel.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Jeremy wrote:
> On Fri, 2004-Jul-30 04:14:47 +0000, Tim Kientzle wrote:
> 
>> This will allow the library to be easily ported to systems
>> that don't have these libraries.  (Of course, it also means
>> that clients using the library on such systems will not be
>> able to take advantage of the automatic compression format
>> detection.)
> 
> 
> How difficult would it be to detect bzip2/gzip input and produce a
> "[bg]zip compression not supported" rather than a generic "this
> input looks like garbage" message?

Pretty simple.  Basically, leave the bid function
alone and replace the read function with one that always
returns an error.

I'll put it on my to-do list.  Of course, if
someone would like to send me some diffs,
it would get done sooner. ;-)

Tim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?410D53E6.7060406>