]> sourceware.org Git - bzip2.git/commit
bzip2: Fix return value when combining --test,-t and -q.
authorMark Wielaard <mark@klomp.org>
Mon, 24 Jun 2019 07:31:16 +0000 (09:31 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 24 Jun 2019 07:31:16 +0000 (09:31 +0200)
commitf51f164df0e8a2c0e055174b328b4038a040e547
treebc008281f68827e616e6c8549e0ccef35c1bb34e
parentc1cdd98db3238cb711c7d9cdc5671452ce2822cb
bzip2: Fix return value when combining --test,-t and -q.

When passing -q to get quiet output --test would not display an error
message, but would also suppress the exit 2 code to indicate the file
was corrupt. Only suppress the error message with -q, not the exit value.

This patch comes from Debian.
"bunzip2 -qt returns 0 for corrupt archives"
https://bugs.debian.org/279025
bzip2.c
This page took 0.026035 seconds and 5 git commands to generate.