/* 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 */
# 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"
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