1
0
Fork 0

Merging upstream version 1.9.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-24 05:59:37 +01:00
parent 3e7d50525b
commit 13941d3cbe
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
30 changed files with 1188 additions and 1060 deletions

52
NEWS
View file

@ -1,38 +1,36 @@
Changes in version 1.8:
Changes in version 1.9:
A buffer overflow has been fixed in zcat which happened sometimes when
the '-v, --show-nonprinting' option was used (or indirectly enabled).
A canary byte has been added to the output buffer to prevent the buffer
overflow from happening again.
zcmp anf zdiff now meet the POSIX requirement for cmp and diff that the
standard input shall be used only if the file1 or file2 operand refers to
standard input.
The option '-R, --dereference-recursive', which recursively follows
symbolic links, has been added to zcat, zgrep, ztest and zupdate.
zdiff now passes the options '-W' and '-y' to diff. (But it only works if
the diff program used supports them).
The option '-r, --recursive' now skips symlinks that are encountered
recursively.
Bzip2 and lzip files are now detected better.
('echo LZIP | zcat' and 'echo BZh5 | zcat' no longer return an error).
If no files are given to zcat, zgrep, ztest and zupdate, a recursive
search will now examine the current working directory.
ztest now continues checking the rest of the files if any input file is a
terminal.
Recursive directory loops are now detected.
'ztest -v' now prints the number of files that failed the test (like lzip).
zcat and zgrep now ignore directories given in the command line if
'--recursive' is not specified, instead of reporting an error.
zcat, zgrep, and ztest now check for errors when closing the input file in
addition to checking when closing the input from the decompressor.
Extra trailing slashes are now removed from directories given in the
command line before recursing into them.
Trailing data remaining in the data feeder to the decompressor are now
correctly ignored.
zcat and zgrep now show the right error when they can't open an input
file instead of showing "No such file or directory".
zupdate has been modified to support the new behavior of lzip 1.22's option
'-o' while retaining:
perfect backwards compatibility with older versions of lzip down to 1.20,
good backwards compatibility with older versions of lzip down to 1.11,
acceptable backwards compatibility with older versions of lzip down to 1.4.
Killed decompressors are now waited for, preventing failure caused by
too many open pipes.
zupdate now keeps combined extensions: tgz, tbz, tbz2, txz --> tlz.
This is useful when recompressing Slackware packages, for example.
Test and document that if a file fails to decompress, zcat, zgrep and
ztest continue processing the rest of the files.
zupdate now puts single quotes around file names when calling zcmp to allow
file names with spaces. (But putting spaces in file names is a bad idea).
Test and document that if an error happens while recompressing a file,
zupdate exits immediately without recompressing the rest of the files.
The configure script now accepts appending options to CXXFLAGS using the
syntax 'CXXFLAGS+=OPTIONS'.
The descriptions of zcat, zcmp, and zdiff have been improved.