Use and report errors that inflate(3) can return, instead of
authormpf <mpf@openbsd.org>
Wed, 20 Aug 2008 09:22:02 +0000 (09:22 +0000)
committermpf <mpf@openbsd.org>
Wed, 20 Aug 2008 09:22:02 +0000 (09:22 +0000)
commit7ac7b0437a81a404993bb6e73426efaea8e9b6d9
treeeb4920252104097b9ebe44d011af4ae0c08ea151
parentbd45c7696cf3fb67a0ea0e2c191b677a9442c1a1
Use and report errors that inflate(3) can return, instead of
aborting silently, and pretending everything went alright.
This lets gzip(1) (especially gzip -t) detect truncated archives
and curruptions that violate the structure of the zlib format.
Unquiet compress(1) in zless/zmore, so the user has a chance
to see errors on corrupted archives.
OK millert@, markus@
usr.bin/compress/gzopen.c
usr.bin/compress/zmore