Home | History | Annotate | Download | only in gzip
History log of /src/usr.bin/gzip/unbzip2.c
RevisionDateAuthorComments
 1.14  04-Aug-2017  mrg add SIGINFO support.
 1.13  05-Dec-2009  mrg apply a change from Xin LI <delphij@delphij.net> to avoid problems when
reading from pipes. introduced with the multi-part bz2 fixes.
 1.12  11-Oct-2009  mrg fix support for multi-section bzip2 files, as created by pbzip2.
 1.11  28-Apr-2008  martin branches: 1.11.6; 1.11.12;
Remove clause 3 and 4 from TNF licenses
 1.10  03-Oct-2006  simonb branches: 1.10.16;
Add standard TNF copyright boilerplate.
 1.9  22-Nov-2005  mrg apply a patch from onno van der linden in PR#32070 that fixes
these problems:
1) gzip -vt just prints the contents of a .Z file
2) gzip -vt will print OK even if the .gz file is corrupt
3) gzip -vt prints nothing with a .bz2 file
4) gzip can loop endlessly with a corrupt .bz2 file
 1.8  15-Sep-2005  mrg fix signed/unsigned mismatch reported by Christian Biere in PR#31180
using his provided patch.
 1.7  02-Jun-2005  lukem Fix numerous uninitalized variables.
Detected with gcc -Wuninitialized.
 1.6  05-Sep-2004  dsl branches: 1.6.2;
The last commit slightly increased the size of gzip - I had thought that
all the install media used the 'SMALL' variant, but this is not the case.
Redo the percentage print code to reduce the size to less than the old version.
Fix another fd leakage (didn't call fclose() if ferror() returned non-zero.
Change some maybe_warn() to maybe_warnx() in places I'm sure errno is undefined.
Call mayber_warn() earlier in other paths so that errno might still be valid.
Make the SMALL and NO_BZIP/COMPRESS_SUPPORT options all compile with WARNS=3.
 1.5  25-May-2004  mrg - 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.
 1.4  25-Apr-2004  mrg significantly rototill. don't use the high-level gzio functions
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.
 1.3  30-Mar-2004  mrg backout previous. fix the bug it inspired instead. we will want this
version of the code when doing file-type detection.
 1.2  30-Mar-2004  mrg patch from tron@ to convert to using public bz interfaces. simonb says
no reason not to and this fixes PR#24964.
 1.1  01-Jan-2004  mrg branches: 1.1.2;
port simonb's bzip2 support.
misc cleanups.
 1.1.2.4  30-May-2004  tron branches: 1.1.2.4.2;
Pull up revision 1.5 (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.
 1.1.2.3  29-Apr-2004  jmc Pullup rev 1.4 (requested by mrg in ticket #223)

Mega patch fixes several issues & bugs in gzip:
- stdin bz2/compress support
- gzip -v pipe support
- various robustness issues
- no more .Sh BUGS in gzip.1
 1.1.2.2  31-Mar-2004  grant Pull up revision 1.3 (requested by tron in ticket #21):

backout previous. fix the bug it inspired instead. we will want this
version of the code when doing file-type detection.
 1.1.2.1  31-Mar-2004  grant Pull up revision 1.2 (requested by tron in ticket #21):

patch from tron@ to convert to using public bz interfaces. simonb says
no reason not to and this fixes PR#24964.
 1.1.2.4.2.2  14-Dec-2005  jmc Pullup rev 1.9 (requested by mrg in ticket #10172)

Fix a few issues:
gzip -vt just prints the contents of a .Z file
gzip -vt will print OK even if the .gz file is corrupt
gzip -vt prints nothing with a .bz2 file
gzip can loop endlessly with a corrupt .bz2 file
Don't warn about >4GB files not having their size correctly stored.
PR#32105 PR#32070
 1.1.2.4.2.1  24-Jul-2005  tron Apply patch (requested by riz in ticket #1111):
Synchronize gzip(1) with NetBSD-current.
 1.6.2.2  27-Nov-2005  riz Pull up following revision(s) (requested by mrg in ticket #1009):
usr.bin/gzip/unbzip2.c: revision 1.9
usr.bin/gzip/gzip.c: revision 1.78
usr.bin/gzip/zuncompress.c: revision 1.6
apply a patch from onno van der linden in PR#32070 that fixes
these problems:
1) gzip -vt just prints the contents of a .Z file
2) gzip -vt will print OK even if the .gz file is corrupt
3) gzip -vt prints nothing with a .bz2 file
4) gzip can loop endlessly with a corrupt .bz2 file
 1.6.2.1  15-Jun-2005  snj Pull up revision 1.7 (requested by lukem in ticket #421):
Fix numerous uninitalized variables.
Detected with gcc -Wuninitialized.
 1.10.16.1  18-May-2008  yamt sync with head.
 1.11.12.1  21-Apr-2010  matt sync to netbsd-5
 1.11.6.2  09-Dec-2009  snj Pull up following revision(s) (requested by mrg in ticket #1182):
usr.bin/gzip/unbzip2.c: revision 1.13
apply a change from Xin LI <delphij@delphij.net> to avoid problems when
reading from pipes. introduced with the multi-part bz2 fixes.
 1.11.6.1  08-Nov-2009  snj Pull up following revision(s) (requested by mrg in ticket #1131):
usr.bin/gzip/unbzip2.c: revision 1.12
fix support for multi-section bzip2 files, as created by pbzip2.

RSS XML Feed