]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
zstd: Use --no-check with binary to match library default
authorHarry Mallon <hjmallon@gmail.com>
Wed, 11 Mar 2020 12:06:51 +0000 (12:06 +0000)
committerHarry Mallon <hjmallon@gmail.com>
Wed, 11 Mar 2020 12:06:51 +0000 (12:06 +0000)
libarchive/archive_write_add_filter_zstd.c

index 4c91551ed3e132e9daa09cb0580bcec64a509f27..280a20f67cb9a6ddcc6d40824564819860603d68 100644 (file)
@@ -297,7 +297,8 @@ archive_compressor_zstd_open(struct archive_write_filter *f)
        int r;
 
        archive_string_init(&as);
-       archive_string_sprintf(&as, "zstd -%d", data->compression_level);
+       /* --no-check matches library default */
+       archive_string_sprintf(&as, "zstd -%d --no-check", data->compression_level);
 
        f->write = archive_compressor_zstd_write;
        r = __archive_write_program_open(f, data->pdata, as.s);