diff options
author | Nick Terrell <terrelln@fb.com> | 2016-11-03 22:41:09 (GMT) |
---|---|---|
committer | Nick Terrell <terrelln@fb.com> | 2016-11-03 22:41:09 (GMT) |
commit | 3dcafd35d409380182393fdb0d5666f6a64ff841 (patch) | |
tree | 9990be07a0bd61e2202387c7509850c6979a4aa5 /doc | |
parent | 6f68a1692e58b0380e5f88d8be61656ead8331f4 (diff) | |
download | lz4-3dcafd35d409380182393fdb0d5666f6a64ff841.zip lz4-3dcafd35d409380182393fdb0d5666f6a64ff841.tar.gz lz4-3dcafd35d409380182393fdb0d5666f6a64ff841.tar.bz2 |
Fix test mode and write to null
Fix test mode to not always return success.
Don't ask for permission to overwrite `nulmark`.
Before:
> echo "hello world" > file
> lz4 -t file
successfully decoded 12 bytes
> lz4 -tf file
successfully decoded 12 bytes
> lz4 file null
Warning : /dev/null already exists
Overwrite ? (Y/n) : n
Error 12 : No. Operation aborted : /dev/null already exists
> lz4 file /dev/null
Warning : /dev/null already exists
Overwrite ? (Y/n) : n
Error 12 : No. Operation aborted : /dev/null already exists
After:
> lz4 -t file
Error 44 : Unrecognized header : file cannot be decoded
> lz4 -tf file
Error 44 : Unrecognized header : file cannot be decoded
> lz4 file null
Compressed 12 bytes into 31 bytes ==> 258.33%
> lz4 file /dev/null
Compressed 12 bytes into 31 bytes ==> 258.33%
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions