]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Minor Fixes 1848/head
authorW. Felix Handte <w@felixhandte.com>
Fri, 25 Oct 2019 17:58:58 +0000 (13:58 -0400)
committerW. Felix Handte <w@felixhandte.com>
Fri, 25 Oct 2019 17:59:19 +0000 (13:59 -0400)
programs/fileio.c
programs/fileio.h
tests/playTests.sh

index c2c5618e5005a2816c2c2f644d98271e27c65470..828878c6a6a0023b0b9bc39ba1fe23323736abd5 100644 (file)
@@ -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 */
index 39eb544a11c9ecf8ba60f64ced528476a7243047..af2c5d9d1f5445c8ccdfd252e4b94dd2cf9ad303 100644 (file)
@@ -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"
index 9d9c8e3dc4708e970c03a08ab324ab373799d345..c1da16507421acdc4cedede2bbfea50b1c4df415 100755 (executable)
@@ -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