mirror of
https://github.com/facebook/zstd.git
synced 2025-12-24 17:21:03 +03:00
Minor Fixes
This commit is contained in:
@@ -2400,7 +2400,6 @@ FIO_determineDstName(const char* srcFileName, const char* outDirName)
|
||||
/* The short tar extensions tzst, tgz, txz and tlz4 files should have "tar"
|
||||
* extension on decompression. Also writes terminating null. */
|
||||
strcpy(dstFileNameBuffer + dstFileNameEndPos, dstSuffix);
|
||||
dstFileNameEndPos += dstSuffixLen;
|
||||
return dstFileNameBuffer;
|
||||
|
||||
/* note : dstFileNameBuffer memory is not going to be free */
|
||||
|
||||
@@ -31,7 +31,8 @@ extern "C" {
|
||||
# define nulmark "/dev/null"
|
||||
#endif
|
||||
|
||||
/* We test whether the extension we found starts with 't', and if so, we append
|
||||
/**
|
||||
* We test whether the extension we found starts with 't', and if so, we append
|
||||
* ".tar" to the end of the output name.
|
||||
*/
|
||||
#define LZMA_EXTENSION ".lzma"
|
||||
|
||||
@@ -865,14 +865,14 @@ if [ $GZIPMODE -eq 1 ]; then
|
||||
fi
|
||||
|
||||
if [ $LZMAMODE -eq 1 ]; then
|
||||
tar c tmp | xz > tmp.txz
|
||||
tar c tmp | $ZSTD --format=xz > tmp.txz
|
||||
$ZSTD -d tmp.txz
|
||||
[ -e tmp.tar ] || die ".txz failed to decompress to .tar!"
|
||||
rm -f tmp.tar tmp.txz
|
||||
fi
|
||||
|
||||
if [ $LZ4MODE -eq 1 ]; then
|
||||
tar c tmp | lz4 > tmp.tlz4
|
||||
tar c tmp | $ZSTD --format=lz4 > tmp.tlz4
|
||||
$ZSTD -d tmp.tlz4
|
||||
[ -e tmp.tar ] || die ".tlz4 failed to decompress to .tar!"
|
||||
rm -f tmp.tar tmp.tlz4
|
||||
|
||||
Reference in New Issue
Block a user