In gunzip(1), treat trailing garbage as a warning and not an error. This
allows scripts to distinguish it between real fatal errors, for instance a
CRC mismatch.
Update manual page for the behavior change.
PR: bin/203873
Submitted by: Eugene Grosbein <eugen grosbein net>
MFC after: 2 weeks
anymore, use the low-level inflate()/deflate() directly. this
allows support file-type detection on stdin; now can decompress
.Z and .bz2 files fed to stdin (fixes PR#25192) additionally it
makes -v work with stdin or stdout (fixes PR#25215.)
(with these changes, we no longer need gzopenfull(3) in libz.)
thanks to martin@ for the code gzip.c:gz_uncompress() is based on.
- fully updated manual
- -n/-N support
- time stamp/owner/etc saved properly
- GNU gzip --long-options supported (missing --ascii, --list
and --licence)
- various cleanups & fixes
note that "-n" (save filename) support is currently disabled due to
depending on API changes in zlib. for now, this support is disabled
(however "gzip -N -d" works.)
this gzip(1) replacement is ready for serious testing. issues are:
- might implement --list one day
- zlib API addition