Package: xz-utils
Version: 5.0.0-2
Severity: normal

It always returns 0 instead of 1 (i.e. if the files differ).
Simple way to check:
cp /etc/hosts /etc/hostname /tmp/
cd /tmp
diff -q host* ; echo $?
xz host*
xzdiff -q host* ; echo $?

I could not create a simple test case for 2 return value (this would be a case 
where diff
fails due to an error while xzdiff can run correctly, i.e. unreadable xz
files do not qualify).

xzcmp behaves the same way, as they are the same program.

I've already filed a bug report with a patch in the ubuntu bug tracker:
https://bugs.launchpad.net/ubuntu/+source/xz-utils/+bug/816325

I've verified that the patch also works on debian squeeze.

-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=hu_HU.UTF-8, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xz-utils depends on:
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib
ii  liblzma2                      5.0.0-2    XZ-format compression library

xz-utils recommends no packages.

Versions of packages xz-utils suggests:
pn  xz-lzma                       <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to