diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2014-08-05 22:32:36 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2014-08-05 22:32:36 +0300 |
commit | 6b5e3b9eff5b8cedb2aac5f524d4d60fc8a48124 (patch) | |
tree | 63ae991ae1846fd46c7f1171c066a13b1a781ed1 /src/xz/coder.c | |
parent | liblzma: Add support for LZMA_IGNORE_CHECK. (diff) | |
download | xz-6b5e3b9eff5b8cedb2aac5f524d4d60fc8a48124.tar.xz |
xz: Add --ignore-check.
Diffstat (limited to 'src/xz/coder.c')
-rw-r--r-- | src/xz/coder.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/xz/coder.c b/src/xz/coder.c index 947b4721..a94bdb83 100644 --- a/src/xz/coder.c +++ b/src/xz/coder.c @@ -450,7 +450,15 @@ coder_init(file_pair *pair) break; } } else { - uint32_t flags = LZMA_TELL_UNSUPPORTED_CHECK; + uint32_t flags = 0; + + // It seems silly to warn about unsupported check if the + // check won't be verified anyway due to --ignore-check. + if (opt_ignore_check) + flags |= LZMA_IGNORE_CHECK; + else + flags |= LZMA_TELL_UNSUPPORTED_CHECK; + if (!opt_single_stream) flags |= LZMA_CONCATENATED; |