zstd -d -f do no longer erase destination file

when source file does not exist (#1082)
This commit is contained in:
Yann Collet
2018-10-01 14:04:00 -07:00
parent 1ab71a8e72
commit c7bd6a41ab
2 changed files with 77 additions and 63 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ test ! -f tmp.zst # tmp.zst should not be created
$ECHO "test : do not delete destination when source is not present"
touch tmp # create destination file
$ZSTD -d -f tmp.zst && die "attempt to decompress a non existing file"
! test -f tmp # destination file should still be present (test disabled temporarily)
test -f tmp # destination file should still be present (test disabled temporarily)
rm tmp*