Subject: CVS commit: [netbsd-2-0] src/usr.bin/gzip
To: None <source-changes@NetBSD.org>
From: Matthias Scheler <tron@netbsd.org>
List: source-changes
Date: 05/30/2004 14:56:40
Module Name:	src
Committed By:	tron
Date:		Sun May 30 14:56:40 UTC 2004

Modified Files:
	src/usr.bin/gzip [netbsd-2-0]: gzip.c

Log Message:
Pull up revision 1.46 (requested by mrg in ticket #420):
- fix "gzip -t" to not output anything by default.  PR#25507
- fix any decompression on corrupted gzip files.  PR#25508
- ask to overwrite files if we have a tty, rather than failing the
  operation.  PR#25509.
- clean up maybe_err()/maybe_warn(): use maybe_err() only for fatal
  errors.  maybe_warn() is for processing errors.  this allows
  "gzip -d file1.gz file2.gz" to decompress file2.gz even if file1.gz
  is corrupted, etc.
- change the internal compressor/decompressor API to return "-1" on
  failure, not 0.  this allows for 0-sized files to be decompressed
  correctly.


To generate a diff of this commit:
cvs rdiff -r1.29.2.12 -r1.29.2.13 src/usr.bin/gzip/gzip.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.