Merge pull request #2315 from senhuang42/allow_zstd_suffix

Support .zstd suffix only for decompression
This commit is contained in:
Yann Collet authored and GitHub committed 2020-09-24 09:44:48 -07:00
commit c6c0a57c53
4 files changed
+9 -1

No files matched your search

+4 -1
View File
@@ -1128,10 +1128,13 @@ if [ $LZ4MODE -ne 1 ]; then
grep ".lz4" tmplg > $INTOVOID && die "Unsupported suffix listed"
fi
touch tmp1
zstd tmp1 -o tmp1.zstd
zstd -d -f tmp1.zstd # support .zstd suffix even though it's not the default suffix
println "\n===> tar extension tests "
rm -f tmp tmp.tar tmp.tzst tmp.tgz tmp.txz tmp.tlz4
rm -f tmp tmp.tar tmp.tzst tmp.tgz tmp.txz tmp.tlz4 tmp1.zstd
datagen > tmp
tar cf tmp.tar tmp