]> git.ipfire.org Git - thirdparty/xz.git/commit
xz: Refactor suffix test with raw format.
authorJia Tan <jiat0218@gmail.com>
Wed, 15 Nov 2023 15:40:13 +0000 (23:40 +0800)
committerJia Tan <jiat0218@gmail.com>
Wed, 15 Nov 2023 15:40:13 +0000 (23:40 +0800)
commitf481523baac946fa3bc13d79186ffaf0c0b818a7
tree4daff5030d1425cc3e85b5c89fa01e6a3b7dd894
parent837ea40b1c9d4998cac4500b55171bf33e0c31a6
xz: Refactor suffix test with raw format.

The previous version set opt_stdout, but this caused an issue with
copying an input file to standard out when decompressing an unknown file
type. The following needs to result in an error:

    echo foo | xz -df

since -c, --stdout is not used. This fixes the previous error by not
setting opt_stdout.
src/xz/args.c