Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [netbsd-11] src
Module Name: src
Committed By: martin
Date: Thu Jan 22 19:10:17 UTC 2026
Modified Files:
src/tests/usr.bin/gzip [netbsd-11]: t_gzip.sh
src/usr.bin/gzip [netbsd-11]: gzip.1 gzip.c unlz.c unpack.c unxz.c
Log Message:
Pull up following revision(s) (requested by mrg in ticket #146):
usr.bin/gzip/unpack.c: revision 1.5
usr.bin/gzip/gzip.c: revision 1.128
usr.bin/gzip/unpack.c: revision 1.6
usr.bin/gzip/gzip.c: revision 1.129
usr.bin/gzip/unlz.c: revision 1.11
usr.bin/gzip/gzip.1: revision 1.33
tests/usr.bin/gzip/t_gzip.sh: revision 1.5
usr.bin/gzip/unxz.c: revision 1.10
usr.bin/gzip/unxz.c: revision 1.11
avoid small reads when there's a preferred IO size.
a discussion on port-sparc here:
https://mail-index.netbsd.org/port-sparc/2025/12/29/msg003063.html
showed that the "file type" 4-byte read was failing on tape devices
as they need a specific IO size to work.
since we already pass this 4 bytes to the real decompressor, avoid this
problem by checking if there's a st_blksize value from stat(2) and use
a buffer of that size for the first read.
rename handle_stdin() to handle_fd_decomp() and use the same backend
for stdin as well as readable non-file files (device, fifo, socket).
tested by Nobuyoshi SATO on port-sparc, atf, and a few other manual
things.
gzip: finally support --ascii and --license for GNU compat.
fix problems introduced by larger pre/prelen buffers.
avoid copying more than buffers can take, and restructure some things
to allow consuming the pre buffer later.
should fix problems with anita and automated testing, that i did not
see since i use gzip sets, not xz sets.
the lz decompressor is still broken, and will need a funopen(3) change
similar to how zuncompress version works today.
tested on a bunch of inputs, though i was unable to find old "pack"d
files to properly test, i was able to confirm it acts the same on a
corrupted pack file i have.
make gzip -d on lz files work again, and fix gzip -t on packed files.
fix gzip -d on a xz file (worked fine for pipe).
add test cases for testing all the various types of decompression from file.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.2.1 src/tests/usr.bin/gzip/t_gzip.sh
cvs rdiff -u -r1.32 -r1.32.4.1 src/usr.bin/gzip/gzip.1
cvs rdiff -u -r1.127 -r1.127.4.1 src/usr.bin/gzip/gzip.c
cvs rdiff -u -r1.10 -r1.10.4.1 src/usr.bin/gzip/unlz.c
cvs rdiff -u -r1.4 -r1.4.4.1 src/usr.bin/gzip/unpack.c
cvs rdiff -u -r1.9 -r1.9.4.1 src/usr.bin/gzip/unxz.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index