2001-08-20  Stuart Caie   <kyzer@4u.net>

	* Makefile.am: added an LDADD line for cabextract's LIBOBJS
	generated by configure. This means the AC_REPLACE_FUNCS line
	should actually have an effect.

	* configure.in: Removed getopt_long and mktime from the
	AC_CHECK_FUNCS, as this is done anyway.
	
2001-08-19  Stuart Caie   <kyzer@4u.net>

	* Makefile.am, configure.in, cabextract.c: moved the GNU getopt
	sources to become an automatically added dependency if
	getopt_long() can't be found in the standard library, just like
	mktime() is handled. The getopt_long(), struct option and optarg
	and optind definitions are taken from getopt.h if possible. If
	they're not there, but getopt_long() was found with standard
	includes files, it's assumed they're defined in the standard
	include files. Otherwise, we define them ourselves.

	* cabextract.c: now gets VERSION defined from configure via
	config.h.

	* decompress(): if the 'fix' option was used, the output buffer
	would always be cleared before block decompression. A nice idea,
	but the MSZIP method likes to keep the output buffer between
	blocks. Thanks to Fernando Trias for spotting this. Stopped
	clearing the output buffer.
	
	* main(): the 'fix' variable wasn't initialised to zero, so on
	some architectures, where the stack-space allocated to the
	variable isn't cleared to zero, you always got the 'fix' option
	selected. See above for why this was bad.

	* process_cabinet(): now prints "Finished processing cabinet" when
	finished extracting, instead of just a blank line. Still prints
	blank lines for listing files.
	
2001-08-05  Stuart Caie   <kyzer@4u.net>

	* Makefile.am: the manpage wasn't included in the distribution.
	Fixed and re-issued the 0.3 release.
	
2001-08-02  Stuart Caie   <kyzer@4u.net>

	* decompress(): now takes a 'fix' flag, which causes MSZIP errors
	to be ignored.

	* cabinet_get_entries(): now keeps the printable information about
	previous and next cabinet parts

	* process_cabinet(): now prints the printable information about
	the next cabinet part in a multi-part cabinet
	
	* file_open(): now prepends a given directory if wanted, and can
	make the filename lowercase if wanted.

	* main(): changed to using getopt_long to parse arguments. Added
	-L (lowercase), -d (output to directory), -f (fix corrupt cabs),
	-h (help), -q (quiet) and -v was recycled to become --version,
	when used on its own.

	* LZXdecompress(): major bug fixed; the updated R0, R1 and R2 in
	uncompressed blocks were being stored in the uncomp_state block,
	not local variables. At the end of the function, the local values
	are always written back to the uncomp_state block. So the values
	placed there by the uncompressed block header were always
	overwritten. Thanks to Pavel Turbin for providing an example of
	this.
	
	* rindex(): this is the BSD precursor of the ANSI standard
	function strrchr(). Oops! Now uses strrchr(), or rindex() if
	strrchr() isn't available.

	* cabinet_find_header(): now prints an error message if it can't
	find a header.
	
2001-04-30  Stuart Caie   <kyzer@4u.net>

	* fixed includes to include both <strings.h> and <string.h> if
	they both exist, and made some signedness conversions explicit.
	This should let cabextract compile with SGI's native
	compiler. Thanks to Markus Nullmeier for the patch.
	
2001-03-04  Stuart Caie   <kyzer@4u.net>

	* main(): now prints the version of cabextract in the copyright
	line.
	
	* cabinet_find_header(): now searches any kind of file, not just
	files beginning with 'MZ' header. Also, always searches entire
	file.  This slows the search down, but increases the usefulness of
	the search overall, IMHO. Thanks to Eric Sharkey for pointing this
	out.
	
	* LZXdecompress(): fixed problem in intel decoding: E8 must not
	appear in the last 10 bytes, not the last 6 bytes... Thanks to Jae
	Jung who pointed this out to me. I didn't believe him at first,
	but he was quite right. Also thanks to Antoine Amanieux for
	providing example files affected by this.

	* process_cabinet(): now extends multipart cabinet filenames to be
	in the same directory as the base cabinet.

	* cabinet_open(): now only lowercases the filename part of a
	cabinet name, not the path part.
	
2001-03-03  Stuart Caie   <kyzer@4u.net>

	* LZXdecompress(): fixed LZX bit buffer exhaustion in where
	READ_HUFFSYM() requests more bits than the buffer actually
	contains: top-of-loop overflow check now allows for the input
	pointer to be 16 bits past the end of the buffer, but checks to
	ensure none of those 16 bits are actually used. Also increased
	decomp_state.inbuf by two bytes and clear the two bytes after
	loaded block in decompress(). Thanks to Jae Jung for pointing out
	this bug, and for providing example files which exposed the bug.

2001-02-26  Stuart Caie <kyzer@4u.net>

	* added configure script / makefile using automake.

	* file_close(): now sets the timestamp on extracted files.