]> git.ipfire.org Git - thirdparty/xz.git/commit
xz: Move suffix check after stdout mode is detected.
authorJia Tan <jiat0218@gmail.com>
Tue, 14 Nov 2023 12:27:46 +0000 (20:27 +0800)
committerJia Tan <jiat0218@gmail.com>
Tue, 14 Nov 2023 12:27:46 +0000 (20:27 +0800)
commit837ea40b1c9d4998cac4500b55171bf33e0c31a6
tree20456aa583a83cd47bf508174aba00a2fa8b9c23
parentd4f4a4d040ef47a5e82dffd0f067e92716606ddf
xz: Move suffix check after stdout mode is detected.

This fixes a bug introduced in cc5aa9ab138beeecaee5a1e81197591893ee9ca0
when the suffix check was initially moved. This caused a situation that
previously worked:

    echo foo | xz -Fraw --lzma1 | wc -c

to fail because the old code knew that this would write to standard out
so a suffix was not needed.
src/xz/args.c