aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/check/check.h
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2009-08-09 13:41:20 -0500
committerLasse Collin <lasse.collin@tukaani.org>2009-08-09 22:55:19 +0300
commite71903fc6101f1c039d702e335b08aad1e1b4100 (patch)
treeb24eaa4ab7f1f999e880acb9b09cdf3fd16043d3 /src/liblzma/check/check.h
parentxzless: Support compressed standard input (diff)
downloadxz-e71903fc6101f1c039d702e335b08aad1e1b4100.tar.xz
“xzdiff a.xz b.xz” always fails
Attempts to compare two compressed files result in no output and exit status 2. Instead of going to standard output, ‘diff’ output is being captured in the xz_status variable along with the exit status from the decompression commands. Later, when this variable is examined for nonzero status codes, numerals from dates in the ‘diff’ output make it appear as though decompression failed. So let the ‘diff’ output leak to standard output with another file descriptor. (This trick is used in all similar contexts elsewhere in xzdiff and in the analogous context in gzip’s zdiff script.)
Diffstat (limited to 'src/liblzma/check/check.h')
0 files changed, 0 insertions, 0 deletions