Package: xz-utils / 5.2.5-2

Metadata

Package Version Patches format
xz-utils 5.2.5-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Scripts Fix exit status of xzdiff xzcmp.patch | (download)

src/scripts/xzdiff.in | 35 21 + 14 - 0 !
1 file changed, 21 insertions(+), 14 deletions(-)

 scripts: fix exit status of xzdiff/xzcmp.
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

This is a minor fix since this affects only the situation when
0002 Scripts Add zstd support to xzgrep.patch | (download)

src/scripts/xzgrep.1 | 9 6 + 3 - 0 !
src/scripts/xzgrep.in | 1 1 + 0 - 0 !
2 files changed, 7 insertions(+), 3 deletions(-)

 scripts: add zstd support to xzgrep.

Thanks to Adam Borowski.

0003 src xz xz.1 Correct misused two fonts macros.patch | (download)

src/xz/xz.1 | 10 5 + 5 - 0 !
1 file changed, 5 insertions(+), 5 deletions(-)

 src/xz/xz.1: correct misused two-fonts macros

0004 xz Avoid the abbreviation e.g. on the man page.patch | (download)

src/xz/xz.1 | 64 32 + 32 - 0 !
1 file changed, 32 insertions(+), 32 deletions(-)

 xz: avoid the abbreviation "e.g." on the man page.

A few are simply omitted, most are converted to "for example"
and surrounded with commas. Sounds like that this is better
style, for example, man-pages(7) recommends avoiding such
abbreviations except in parenthesis.

Thanks to Bjarni Ingi Gislason.

0005 xz Protect the ellipsis . on the man page with.patch | (download)

src/xz/xz.1 | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 xz: protect the ellipsis (...) on the man page with \&.

This does it only when ... appears outside macro calls.

Thanks to Bjarni Ingi Gislason.

0006 xz Use non breaking spaces when intentionally using .patch | (download)

src/xz/xz.1 | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 xz: use non-breaking spaces when intentionally using more than one
 space.

This silences some style checker warnings. Seems that spaces
in the beginning of a line don't need this treatment.

Thanks to Bjarni Ingi Gislason.

0007 xz Avoid unneeded f escapes on the man page.patch | (download)

src/xz/xz.1 | 31 22 + 9 - 0 !
1 file changed, 22 insertions(+), 9 deletions(-)

 xz: avoid unneeded \f escapes on the man page.

I don't want to use \c in macro arguments but groff_man(7)
suggests that \f has better portability. \f would be needed
for the .TP strings for portability reasons anyway.

Thanks to Bjarni Ingi Gislason.

0008 xz Make keep accept symlinks hardlinks and setuid se.patch | (download)

src/xz/file_io.c | 9 5 + 4 - 0 !
src/xz/xz.1 | 14 14 + 0 - 0 !
2 files changed, 19 insertions(+), 4 deletions(-)

 xz: make --keep accept symlinks, hardlinks,
 and setuid/setgid/sticky.

Previously this required using --force but that has other
effects too which might be undesirable. Changing the behavior
of --keep has a small risk of breaking existing scripts but
since this is a fairly special corner case I expect the
likehood of breakage to be low enough.

I think the new behavior is more logical. The only reason for
the old behavior was to be consistent with gzip and bzip2.

Thanks to Vincent Lefevre and Sebastian Andrzej Siewior.

0009 Scripts Fix exit status of xzgrep.patch | (download)

src/scripts/xzgrep.in | 20 13 + 7 - 0 !
1 file changed, 13 insertions(+), 7 deletions(-)

 scripts: fix exit status of xzgrep.

Omit the -q option from xz, gzip, and bzip2. With xz this shouldn't
matter. With gzip it's important because -q makes gzip replace SIGPIPE
with exit status 2. With bzip2 it's important because with -q bzip2
is completely silent if input is corrupt while other decompressors
still give an error message.

Avoiding exit status 2 from gzip is important because bzip2 uses
exit status 2 to indicate corrupt input. Before this commit xzgrep
didn't recognize corrupt .bz2 files because xzgrep was treating
exit status 2 as SIGPIPE for gzip compatibility.

zstd still needs -q because otherwise it is noisy in normal
operation.

The code to detect real SIGPIPE didn't check if the exit status
was due to a signal (>= 128) and so could ignore some other exit
status too.