Fix exit status of "xzdiff foo.xz bar.xz".
commit2c144a0365c84dbf1b6722466746d42f2563a319
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 31 Jul 2011 08:01:47 +0000 (31 11:01 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 5 Sep 2011 13:05:44 +0000 (5 16:05 +0300)
tree83873027a42f31706cf7a715eacc492f69bdd5b5
parentedf339227a966f24aebe1845fcca9429b8f6e318
Fix exit status of "xzdiff foo.xz bar.xz".

xzdiff was clobbering the exit status from diff in a case
statement used to analyze the exit statuses from "xz" when
its operands were two compressed files. Save and restore
diff's exit status to fix this.

The bug is inherited from zdiff in GNU gzip and was fixed
there on 2009-10-09.

Thanks to Jonathan Nieder for the patch and
to Peter Pallinger for reporting the bug.
src/scripts/xzdiff.in
tests/Makefile.am
tests/test_scripts.sh [new file with mode: 0755]