History log of /freebsd-10-stable/usr.bin/gzip/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
327192 26-Dec-2017 delphij

MFC r326791: Close the correct file descriptor.

327172 25-Dec-2017 delphij

MFC r326185: Set errno to EFTYPE instead of EINVAL to be more consistent
with the rest of code.

319281 31-May-2017 delphij

MFC r313327:

Reflect actual NetBSD revision we already have.

313488 09-Feb-2017 ngie

MFC r289172,r290254:

r289172:

Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and
netbsd-tests.test.mk (r289151)

- Eliminate explicit OBJTOP/SRCTOP setting
- Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk
- Remove unnecessary TESTSDIR setting
- Use SRCTOP where possible for clarity

r290254:

Remove unused variable (SRCDIR)


/freebsd-10-stable/bin/cat/tests/Makefile
/freebsd-10-stable/bin/date/tests/Makefile
/freebsd-10-stable/bin/expr/tests/Makefile
/freebsd-10-stable/bin/ls/tests/Makefile
/freebsd-10-stable/bin/mv/tests/Makefile
/freebsd-10-stable/bin/pax/tests/Makefile
/freebsd-10-stable/bin/pkill/tests/Makefile
/freebsd-10-stable/bin/sh/tests/Makefile
/freebsd-10-stable/bin/sleep/tests/Makefile
/freebsd-10-stable/bin/test/tests/Makefile
/freebsd-10-stable/bin/tests/Makefile
/freebsd-10-stable/cddl/lib/tests/Makefile
/freebsd-10-stable/cddl/sbin/tests/Makefile
/freebsd-10-stable/cddl/tests/Makefile
/freebsd-10-stable/cddl/usr.bin/tests/Makefile
/freebsd-10-stable/cddl/usr.sbin/dtrace/tests/Makefile
/freebsd-10-stable/cddl/usr.sbin/tests/Makefile
/freebsd-10-stable/gnu/lib/tests/Makefile
/freebsd-10-stable/gnu/tests/Makefile
/freebsd-10-stable/gnu/usr.bin/diff/tests/Makefile
/freebsd-10-stable/gnu/usr.bin/tests/Makefile
/freebsd-10-stable/lib/atf/libatf-c++/tests/Makefile
/freebsd-10-stable/lib/atf/libatf-c++/tests/detail/Makefile
/freebsd-10-stable/lib/atf/libatf-c/tests/Makefile
/freebsd-10-stable/lib/atf/libatf-c/tests/detail/Makefile
/freebsd-10-stable/lib/atf/tests/Makefile
/freebsd-10-stable/lib/atf/tests/test-programs/Makefile
/freebsd-10-stable/lib/libc/tests/Makefile
/freebsd-10-stable/lib/libc/tests/Makefile.netbsd-tests
/freebsd-10-stable/lib/libc/tests/c063/Makefile
/freebsd-10-stable/lib/libc/tests/db/Makefile
/freebsd-10-stable/lib/libc/tests/gen/Makefile
/freebsd-10-stable/lib/libc/tests/gen/execve/Makefile
/freebsd-10-stable/lib/libc/tests/gen/posix_spawn/Makefile
/freebsd-10-stable/lib/libc/tests/hash/Makefile
/freebsd-10-stable/lib/libc/tests/inet/Makefile
/freebsd-10-stable/lib/libc/tests/locale/Makefile
/freebsd-10-stable/lib/libc/tests/net/Makefile
/freebsd-10-stable/lib/libc/tests/net/getaddrinfo/Makefile
/freebsd-10-stable/lib/libc/tests/regex/Makefile
/freebsd-10-stable/lib/libc/tests/rpc/Makefile
/freebsd-10-stable/lib/libc/tests/setjmp/Makefile
/freebsd-10-stable/lib/libc/tests/ssp/Makefile
/freebsd-10-stable/lib/libc/tests/stdio/Makefile
/freebsd-10-stable/lib/libc/tests/stdlib/Makefile
/freebsd-10-stable/lib/libc/tests/string/Makefile
/freebsd-10-stable/lib/libc/tests/sys/Makefile
/freebsd-10-stable/lib/libc/tests/termios/Makefile
/freebsd-10-stable/lib/libc/tests/time/Makefile
/freebsd-10-stable/lib/libc/tests/tls/Makefile
/freebsd-10-stable/lib/libc/tests/tls/dso/Makefile
/freebsd-10-stable/lib/libc/tests/ttyio/Makefile
/freebsd-10-stable/lib/libcrypt/tests/Makefile
/freebsd-10-stable/lib/libmp/tests/Makefile
/freebsd-10-stable/lib/libnv/tests/Makefile
/freebsd-10-stable/lib/libpam/libpam/tests/Makefile
/freebsd-10-stable/lib/librt/tests/Makefile
/freebsd-10-stable/lib/libthr/tests/Makefile
/freebsd-10-stable/lib/libthr/tests/dlopen/Makefile
/freebsd-10-stable/lib/libthr/tests/dlopen/dso/Makefile
/freebsd-10-stable/lib/libutil/tests/Makefile
/freebsd-10-stable/lib/msun/tests/Makefile
/freebsd-10-stable/lib/tests/Makefile
/freebsd-10-stable/libexec/atf/atf-check/tests/Makefile
/freebsd-10-stable/libexec/atf/atf-sh/tests/Makefile
/freebsd-10-stable/libexec/atf/tests/Makefile
/freebsd-10-stable/libexec/tests/Makefile
/freebsd-10-stable/sbin/devd/tests/Makefile
/freebsd-10-stable/sbin/dhclient/tests/Makefile
/freebsd-10-stable/sbin/growfs/tests/Makefile
/freebsd-10-stable/sbin/mdconfig/tests/Makefile
/freebsd-10-stable/sbin/tests/Makefile
/freebsd-10-stable/secure/lib/tests/Makefile
/freebsd-10-stable/secure/libexec/tests/Makefile
/freebsd-10-stable/secure/tests/Makefile
/freebsd-10-stable/secure/usr.bin/tests/Makefile
/freebsd-10-stable/secure/usr.sbin/tests/Makefile
/freebsd-10-stable/share/examples/tests/Makefile
/freebsd-10-stable/share/tests/Makefile
/freebsd-10-stable/tests/etc/Makefile
/freebsd-10-stable/tests/sys/mqueue/Makefile
/freebsd-10-stable/tests/sys/pjdfstest/tests/Makefile
/freebsd-10-stable/usr.bin/apply/tests/Makefile
/freebsd-10-stable/usr.bin/basename/tests/Makefile
/freebsd-10-stable/usr.bin/calendar/tests/Makefile
/freebsd-10-stable/usr.bin/cmp/tests/Makefile
/freebsd-10-stable/usr.bin/col/tests/Makefile
/freebsd-10-stable/usr.bin/comm/tests/Makefile
/freebsd-10-stable/usr.bin/cut/tests/Makefile
/freebsd-10-stable/usr.bin/dirname/tests/Makefile
/freebsd-10-stable/usr.bin/file2c/tests/Makefile
/freebsd-10-stable/usr.bin/grep/tests/Makefile
tests/Makefile
/freebsd-10-stable/usr.bin/join/tests/Makefile
/freebsd-10-stable/usr.bin/jot/tests/Makefile
/freebsd-10-stable/usr.bin/lastcomm/tests/Makefile
/freebsd-10-stable/usr.bin/m4/tests/Makefile
/freebsd-10-stable/usr.bin/ncal/tests/Makefile
/freebsd-10-stable/usr.bin/printf/tests/Makefile
/freebsd-10-stable/usr.bin/sed/tests/Makefile
/freebsd-10-stable/usr.bin/tests/Makefile
/freebsd-10-stable/usr.bin/truncate/tests/Makefile
/freebsd-10-stable/usr.bin/uudecode/tests/Makefile
/freebsd-10-stable/usr.bin/uuencode/tests/Makefile
/freebsd-10-stable/usr.bin/xargs/tests/Makefile
/freebsd-10-stable/usr.bin/yacc/tests/Makefile
/freebsd-10-stable/usr.sbin/etcupdate/tests/Makefile
/freebsd-10-stable/usr.sbin/fstyp/tests/Makefile
/freebsd-10-stable/usr.sbin/newsyslog/tests/Makefile
/freebsd-10-stable/usr.sbin/nmtree/tests/Makefile
/freebsd-10-stable/usr.sbin/pw/tests/Makefile
/freebsd-10-stable/usr.sbin/sa/tests/Makefile
/freebsd-10-stable/usr.sbin/tests/Makefile
309789 10-Dec-2016 delphij

MFC r309184:

style(9) indent changes, no actual code change.

292588 22-Dec-2015 delphij

MFC: xz 5.2.2.

Relnotes: yes


/freebsd-10-stable/Makefile.inc1
/freebsd-10-stable/ObsoleteFiles.inc
/freebsd-10-stable/contrib/xz/ChangeLog
/freebsd-10-stable/contrib/xz/FREEBSD-Xlist
/freebsd-10-stable/contrib/xz/FREEBSD-upgrade
/freebsd-10-stable/contrib/xz/THANKS
/freebsd-10-stable/contrib/xz/TODO
/freebsd-10-stable/contrib/xz/src/common/mythread.h
/freebsd-10-stable/contrib/xz/src/common/sysdefs.h
/freebsd-10-stable/contrib/xz/src/common/tuklib_cpucores.c
/freebsd-10-stable/contrib/xz/src/common/tuklib_integer.h
/freebsd-10-stable/contrib/xz/src/common/tuklib_physmem.c
/freebsd-10-stable/contrib/xz/src/liblzma/api/lzma.h
/freebsd-10-stable/contrib/xz/src/liblzma/api/lzma/base.h
/freebsd-10-stable/contrib/xz/src/liblzma/api/lzma/block.h
/freebsd-10-stable/contrib/xz/src/liblzma/api/lzma/container.h
/freebsd-10-stable/contrib/xz/src/liblzma/api/lzma/filter.h
/freebsd-10-stable/contrib/xz/src/liblzma/api/lzma/hardware.h
/freebsd-10-stable/contrib/xz/src/liblzma/api/lzma/index.h
/freebsd-10-stable/contrib/xz/src/liblzma/api/lzma/index_hash.h
/freebsd-10-stable/contrib/xz/src/liblzma/api/lzma/lzma.h
/freebsd-10-stable/contrib/xz/src/liblzma/api/lzma/lzma12.h
/freebsd-10-stable/contrib/xz/src/liblzma/api/lzma/version.h
/freebsd-10-stable/contrib/xz/src/liblzma/check/check.h
/freebsd-10-stable/contrib/xz/src/liblzma/check/sha256.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/alone_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/alone_decoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/common/alone_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/auto_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/block_buffer_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/block_buffer_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/block_buffer_encoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/common/block_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/block_decoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/common/block_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/block_encoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/common/block_header_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/block_header_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/block_util.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/common.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/common.h
/freebsd-10-stable/contrib/xz/src/liblzma/common/easy_buffer_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/easy_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/filter_buffer_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/filter_buffer_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/filter_common.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/filter_common.h
/freebsd-10-stable/contrib/xz/src/liblzma/common/filter_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/filter_decoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/common/filter_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/filter_encoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/common/filter_flags_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/hardware_cputhreads.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/index.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/index_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/index_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/index_encoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/common/index_hash.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/memcmplen.h
/freebsd-10-stable/contrib/xz/src/liblzma/common/outqueue.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/outqueue.h
/freebsd-10-stable/contrib/xz/src/liblzma/common/stream_buffer_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/stream_buffer_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/stream_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/stream_decoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/common/stream_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/common/stream_encoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/common/stream_encoder_mt.c
/freebsd-10-stable/contrib/xz/src/liblzma/delta/delta_common.c
/freebsd-10-stable/contrib/xz/src/liblzma/delta/delta_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/delta/delta_decoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/delta/delta_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/delta/delta_encoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/delta/delta_private.h
/freebsd-10-stable/contrib/xz/src/liblzma/liblzma.map
/freebsd-10-stable/contrib/xz/src/liblzma/liblzma.pc.in
/freebsd-10-stable/contrib/xz/src/liblzma/lz/lz_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/lz/lz_decoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/lz/lz_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/lz/lz_encoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/lz/lz_encoder_mf.c
/freebsd-10-stable/contrib/xz/src/liblzma/lzma/fastpos.h
/freebsd-10-stable/contrib/xz/src/liblzma/lzma/lzma2_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/lzma/lzma2_decoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/lzma/lzma2_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/lzma/lzma2_encoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/lzma/lzma_common.h
/freebsd-10-stable/contrib/xz/src/liblzma/lzma/lzma_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/lzma/lzma_decoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/lzma/lzma_encoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/lzma/lzma_encoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/lzma/lzma_encoder_optimum_fast.c
/freebsd-10-stable/contrib/xz/src/liblzma/lzma/lzma_encoder_optimum_normal.c
/freebsd-10-stable/contrib/xz/src/liblzma/lzma/lzma_encoder_private.h
/freebsd-10-stable/contrib/xz/src/liblzma/rangecoder/range_decoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/simple/arm.c
/freebsd-10-stable/contrib/xz/src/liblzma/simple/armthumb.c
/freebsd-10-stable/contrib/xz/src/liblzma/simple/ia64.c
/freebsd-10-stable/contrib/xz/src/liblzma/simple/powerpc.c
/freebsd-10-stable/contrib/xz/src/liblzma/simple/simple_coder.c
/freebsd-10-stable/contrib/xz/src/liblzma/simple/simple_coder.h
/freebsd-10-stable/contrib/xz/src/liblzma/simple/simple_decoder.c
/freebsd-10-stable/contrib/xz/src/liblzma/simple/simple_decoder.h
/freebsd-10-stable/contrib/xz/src/liblzma/simple/simple_private.h
/freebsd-10-stable/contrib/xz/src/liblzma/simple/sparc.c
/freebsd-10-stable/contrib/xz/src/liblzma/simple/x86.c
/freebsd-10-stable/contrib/xz/src/liblzma/validate_map.sh
/freebsd-10-stable/contrib/xz/src/xz/args.c
/freebsd-10-stable/contrib/xz/src/xz/args.h
/freebsd-10-stable/contrib/xz/src/xz/coder.c
/freebsd-10-stable/contrib/xz/src/xz/coder.h
/freebsd-10-stable/contrib/xz/src/xz/file_io.c
/freebsd-10-stable/contrib/xz/src/xz/file_io.h
/freebsd-10-stable/contrib/xz/src/xz/hardware.c
/freebsd-10-stable/contrib/xz/src/xz/hardware.h
/freebsd-10-stable/contrib/xz/src/xz/list.c
/freebsd-10-stable/contrib/xz/src/xz/main.c
/freebsd-10-stable/contrib/xz/src/xz/message.c
/freebsd-10-stable/contrib/xz/src/xz/mytime.c
/freebsd-10-stable/contrib/xz/src/xz/mytime.h
/freebsd-10-stable/contrib/xz/src/xz/options.c
/freebsd-10-stable/contrib/xz/src/xz/private.h
/freebsd-10-stable/contrib/xz/src/xz/signals.c
/freebsd-10-stable/contrib/xz/src/xz/suffix.c
/freebsd-10-stable/contrib/xz/src/xz/xz.1
/freebsd-10-stable/lib/Makefile
/freebsd-10-stable/lib/libarchive/Makefile
/freebsd-10-stable/lib/liblzma/Makefile
/freebsd-10-stable/lib/liblzma/Symbol.map
/freebsd-10-stable/lib/liblzma/Versions.def
/freebsd-10-stable/lib/liblzma/config.h
/freebsd-10-stable/rescue/rescue/Makefile
/freebsd-10-stable/usr.bin/cpio/Makefile
/freebsd-10-stable/usr.bin/grep/Makefile
Makefile
/freebsd-10-stable/usr.bin/lzmainfo/Makefile
/freebsd-10-stable/usr.bin/mkulzma/Makefile
/freebsd-10-stable/usr.bin/tar/Makefile
/freebsd-10-stable/usr.bin/xz/Makefile
/freebsd-10-stable/usr.bin/xzdec/Makefile
290569 09-Nov-2015 delphij

MFC r290024,290073:

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>

282052 27-Apr-2015 delphij

MFC r281500,281540,281626:

Sync with NetBSD:
- Mention xz(1) in gzip(1).
- Strip away path from header name when decompressing.

276490 01-Jan-2015 ngie

MFC r272777,r272779,r272780,r272781,r272782,r272783,r272784,r272787,r272788:

r272777:

Integrate usr.sbin/nmtree/tests from NetBSD into atf/kyua

In collaboration with: pho
Sponsored by: EMC / Isilon Storage Division

r272779:

Integrate usr.sbin/basename/tests from NetBSD into atf/kyua

In collaboration with: pho
Sponsored by: EMC / Isilon Storage Division

r272780:

Integrate usr.bin/cmp/tests from NetBSD into atf/kyua

In collaboration with: sjg
Sponsored by: EMC / Isilon Storage Division

r272781:

Integrate usr.bin/dirname/tests from NetBSD into atf/kyua

In collaboration with: pho, sjg
Sponsored by: EMC / Isilon Storage Division

r272782:

Integrate bin/sleep/tests from NetBSD into atf/kyua

Sponsored by: EMC / Isilon Storage Division

r272783:

Integrate usr.bin/cut/tests from NetBSD into atf/kyua

Sponsored by: EMC / Isilon Storage Division

r272784:

Integrate usr.bin/grep/tests from NetBSD into atf/kyua

Sponsored by: EMC / Isilon Storage Division

r272787:

Integrate usr.bin/diff/tests from NetBSD into atf/kyua at gnu/usr.bin/diff/tests

Sponsored by: EMC / Isilon Storage Division

r272788:

Integrate usr.bin/gzip/tests from NetBSD into atf/kyua

Sponsored by: EMC / Isilon Storage Division

274262 08-Nov-2014 delphij

MFC r273507: Sync with NetBSD.

268516 11-Jul-2014 delphij

MFC r267887:

Correct buffer size.

Submitted by: Sascha Wildner <swildner dragonflybsd org>

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


241737 19-Oct-2012 ed

More -Wmissing-variable-declarations fixes.

In addition to adding `static' where possible:

- bin/date: Move `retval' into extern.h to make it visible to date.c.
- bin/ed: Move globally used variables into ed.h.
- sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings.
- usr.bin/calendar: Remove unneeded variables.
- usr.bin/chat: Make `line' local instead of global.
- usr.bin/elfdump: Comment out unneeded function.
- usr.bin/rlogin: Use _Noreturn instead of __dead2.
- usr.bin/tset: Pull `Ospeed' into extern.h.
- usr.sbin/mfiutil: Put global variables in mfiutil.h.
- usr.sbin/pkg: Remove unused `os_corres'.
- usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.


236596 05-Jun-2012 eadler

Fix style nit: don't use leading zero for dates in .Dd

Prompted by: brueffer
Approved by: brueffer
MFC after: 3 days


226418 16-Oct-2011 delphij

According to the NetBSD foundation [1]:

Third parties are encouraged to change the license on any files which have
a 4-clause license contributed to the NetBSD Foundation to a 2-clause
license. We would also encourage you to inform us about these files, so
that we can continue to track the many places in which NetBSD is used.

http://www.netbsd.org/about/redistribution.html#why2clause [1]

Requested by: joel@


226184 10-Oct-2011 delphij

Incorporate recent changes from NetBSD. Most notable change is the addition
of support of decompressing xz files.

Obtained from: NetBSD


225845 28-Sep-2011 delphij

Sync RCS id with NetBSD, this was intentionally omitted from the advisory
in order to reduce patchset size.

MFC after: 3 days


225827 28-Sep-2011 bz

Fix handling of corrupt compress(1)ed data. [11:04]

Add missing length checks on unix socket addresses. [11:05]

Approved by: so (cperciva)
Approved by: re (kensmith)
Security: FreeBSD-SA-11:04.compress
Security: CVE-2011-2895 [11:04]
Security: FreeBSD-SA-11:05.unix


222287 25-May-2011 delphij

Fix a regression introduced with previous changeset: if output is stdout,
do not check for symbolic link.


222211 23-May-2011 delphij

Match symbolic link handling behavior with GNU gzip, bzip2 and xz:

When we are operating on a symbolic link pointing to an existing
file, bail out by default, but go ahead if -f is specified.

Submitted by: arundel
MFC after: 2 weeks


222210 23-May-2011 delphij

Diff reduction against NetBSD. The most notable change is to zdiff(1) to
handle more file formats including bzip2 and xz.

MFC after: 2 weeks


218421 07-Feb-2011 gjb

Update manpage to remove CRT reference.

PR: 154441
Submitted by: Ben Haga (bhaga of absoludicrous com)
Suggestion by: pluknet
Approved by: keramida (mentor)
MFC after: 3 days


213927 16-Oct-2010 bcr

Correct some typos in comments, no functional changes.


213044 23-Sep-2010 delphij

In the past gunzip(1) write()'s after each inflate return. This is
not optimal from a performance standpoint since the write buffer is
not necessarily be filled up when the inflate rountine reached the
end of input buffer and it's not the end of file.

This problem gets uncovered by trying to pipe gunzip -c output to
a GEOM device directly, which enforces the writes be multiple of
sector size.

Sponsored by: iXsystems, Inc.
Reported by: jpaetzel
MFC after: 2 weeks


211475 19-Aug-2010 delphij

Check return value of dup(), it could be -1 when the system is running
out of file descriptors for instance.

Found with: Coverity Prevent(tm)
CID: 6084
MFC after: 1 month


209017 10-Jun-2010 delphij

Several style fixes as prompted by bde@.

While I'm there, loosen the st_nlink check and fix grammar for 1 extra
links.


208889 07-Jun-2010 delphij

Follow up revision 208888 with purely ident changes.

MFC after: 1 week


208888 07-Jun-2010 delphij

Correct a bug in gzip(1): make sure that initialize isb with fstat() on
input file before using it.

PR: bin/147275
Submitted by: thomas
MFC after: 1 week


207284 27-Apr-2010 delphij

Use _exit(2) system call directly instead of using exit(3) in signal
handler, as the latter is not guaranteed to be signal safe, and we
do not really care about flushing the stream during SIGINT.

Suggested by: Maxim Konovalov <maxim.konovalov gmail com>
MFC after: 13 days


207283 27-Apr-2010 delphij

Language improvements to make the BUGS section easier to read.

Reviewed by: Alexander Best <alexbestms wwu de>
MFC after: 13 days


207247 26-Apr-2010 delphij

Add a signal handler for SIGINT which removes output file when necessary.

While I'm there, move unlink_input() slightly down to after closing the
output file, in uncompression path.

MFC after: 2 weeks


206387 07-Apr-2010 delphij

Diff reduction against NetBSD and add myself to AUTHORS section of the
manual page as I wrote the unpack functionality. No actual executable
code change verified with md5(1).


205793 28-Mar-2010 ed

Change all our own code to use st_*tim instead of st_*timespec.

Also remove some local patches to diff(1) which are now unneeded.


201386 02-Jan-2010 ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


199339 16-Nov-2009 delphij

We should distinguish between a real truncated case and EOF after
BZ_STREAM_END triggered re-init. Do it by introducing a new flag
to represent the 'cold' case after bzip2 state is reinitialized.

This fixes regression reported on -current@ as well as another one
I found during twiddling with gzip.

Reported by: swell.k gmail.com
MFC after: 1 week


199066 09-Nov-2009 delphij

Apply a NetBSD fix (revision 1.12) to handle multi-session bzip2 files
as created by pbzip2.

Submitted by: mrg (NetBSD.org)
MFC after: 1 week


195988 31-Jul-2009 delphij

Correct a stack underflow in gzip:

- Limit suffix to be no more than 30 bytes long. This matches GNU
behavior.
- Correct usage of memcpy().

Note that this commit only corrects the stack underflow issue, we
still need some other fixes to cover other edges. [1]

Reported by: Ron Jude <ronj wytheville org>
Discussed with: Matthew Green (original NetBSD gzip author),
Eygene Ryabinkin <rea-fbsd codelabs ru> [1]
Approved by: re (kib)


194916 24-Jun-2009 delphij

Sync with NetBSD:
- gzip -n does not store timestamp; [1]
- Reduce diff against NetBSD by moving some casts in our local
versions.

PR: bin/134955
Obtained from: NetBSD
MFC after: 1 month


194579 21-Jun-2009 delphij

Add support for uncompressing pack(1)'ed files. Pack(1) is a program found
in some commercial Unix systems, which utilizes Huffman minimum redundancy
code tree to compress files. This implementation supports the "new" pack
format only, just like GNU gzip did.

Thanks for oliver@'s archive set which I can test against, and Mingyan Guo
for providing helpful review of my code.

PR: bin/109567
MFC after: 1 month


194508 19-Jun-2009 delphij

Two fixes for SMALL case when compiling with WARNS=6:

- Reduce scope where return value can be referenced.
- Add a dummy access to timestamp to silence warning.

Submitted by: Mingyan Guo <guomingyan gmail com>


181283 04-Aug-2008 cperciva

Mark functions as __dead2 in order to help the LLVM static checker
understand which code paths aren't possible.

Reported by: edwin


180727 23-Jul-2008 delphij

Sync with NetBSD's license changes.


180136 01-Jul-2008 delphij

Reflect the fact that we actually have NetBSD revision 1.3.


180135 30-Jun-2008 delphij

Remove clause 3 and 4 of NetBSD license.

Obtained from: NetBSD


180126 30-Jun-2008 delphij

Make it clear that gzcat expects each argument to be separate files.

PR: docs/123010
Submitted by: Andrew Wright <andrewhw ieee org>
MFC after: 2 weeks


176980 09-Mar-2008 rwatson

Teach gunzip that .tbz and .tbz2 uncompress to .tar, in a manner similar to
its existing understanding that .tgz uncompresses to .tar.

MFC after: 3 days
PR: 121519
Submitted by: Ighighi <ighighi at gmail.com>


176970 09-Mar-2008 rwatson

When gzipping to a target file, only set the source file flags on the
target file after the timestamp has been set; otherwise setting the
timestamp will fail if the flags don't permit it (i.e., uchg).

MFC after: 1 week
PR: 120208
Submitted by: Ighighi <ighighi at gmail.com>


176133 09-Feb-2008 yar

Fix a few obvious errors in the znew(1) script.

PR: bin/120249
Submitted by: Jaakko Heinonen <see the PR for email>


171389 12-Jul-2007 delphij

- Simulate GNU gzip(1) behavior where full filename is
being output in verbose mode when doing recursive[1].
- Use better representation of S:

PR: bin/114470
Submitted by: Ighighi <ighighi gmail com> [1]
Approved by: re (hrs)


170357 06-Jun-2007 delphij

Mention 'k' option of gunzip.

Pointed out by: ighighi gmail.com


170053 28-May-2007 delphij

Add a '-k' flag which is similar with its bzip2(1) counterpart,
meaning that the user wants the input file to be left intact.

Feature request: Ighighi <ighighi gmail.com>
PR: bin/103006
MFC after: 1 month


167627 16-Mar-2007 delphij

Mention a limitation that was inherted from RFC1952, making
it impossible to obtain correct file size from a file that
is larger than 4GB before compression.

PR: bin/110329
MFC after: 1 week


166621 10-Feb-2007 simon

Do not install zgrep, or links to zgrep, since zgrep is provided by
src/gnu/usr.bin/grep.

Reviewed by: delphij


166363 31-Jan-2007 delphij

Fix typo.

Obtained from: DragonFly


166255 26-Jan-2007 delphij

Replace the GNU gzip with a slightly modified NetBSD gzip. The
NetBSD version is a feature-to-feature re-implementation of GNU
gzip using the freely-redistributable zlib and this version is
expected to be mostly bug-to-bug compatible with the GNU
implementation.

- Because this is a piece of mature code and we want to make
changes so it is added directly rather than importing to
src/contrib.
- Connect newly added code to src/usr.bin/ and rescue/rescue
build.
- Disconnect the GNU gzip code from build for now, they will
be eventually removed completely.
- Provide two new src.conf(5) knobs, WITHOUT_BZIP2_SUPPORT and
WITHOUT_BZIP2.

Tested by: kris (full exp-7 pointyhat build)
Approved by: core (importing a 4-clause BSD licensed file)
Approved by: re (adding new utility during -HEAD code slush)