cvs commit:src/lib/libarchivearchive_read_support_compression_all.c archive_write_set_compression_gzip.c

Tim Kientzle kientzle at freebsd.org
Sun Aug 1 13:34:48 PDT 2004


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



More information about the cvs-src mailing list