diff options
author | Jia Tan <jiat0218@gmail.com> | 2023-11-14 20:27:04 +0800 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-12-22 20:02:06 +0800 |
commit | 87c956d4c4604d30b01326ea88f6241ec44f5526 (patch) | |
tree | d128876d46c42d10c79bb53c6d3f859fbbfcc9c9 /tests/test_stream_flags.c | |
parent | liblzma: Add missing comments to lz_encoder.h. (diff) | |
download | xz-87c956d4c4604d30b01326ea88f6241ec44f5526.tar.xz |
xz: Fix suffix check.
The suffix refactor done in 99575947a58a60416c570eb78038d18a1ea4cef4
had a small regression where raw format compression to standard out
failed if a suffix was not set. In this case, setting the suffix did
not make sense since a file is not created.
Now, xz should only fail when a suffix is not provided when it is
actually needed.
For instance:
echo "foo" | xz --format=raw --lzma2 | wc -c
does not need a suffix check since it creates no files. But:
xz --format=raw --lzma2 --suffix=.bar foo
Needs the suffix to be set since it must create foo.bar.
Diffstat (limited to 'tests/test_stream_flags.c')
0 files changed, 0 insertions, 0 deletions