diff options
author | Tim Zakian <2895723+tzakian@users.noreply.github.com> | 2019-01-10 18:20:17 (GMT) |
---|---|---|
committer | Tim Zakian <2895723+tzakian@users.noreply.github.com> | 2019-01-10 18:20:17 (GMT) |
commit | 9028682e7ac1e621299b52065d47ba9f74c5c111 (patch) | |
tree | 2971fa892b0ac832f959df59edd068b7b9e0230e /programs/lz4cli.c | |
parent | e30b1f73d42a1307ab37c6ddcdb583acf17b4457 (diff) | |
download | lz4-9028682e7ac1e621299b52065d47ba9f74c5c111.zip lz4-9028682e7ac1e621299b52065d47ba9f74c5c111.tar.gz lz4-9028682e7ac1e621299b52065d47ba9f74c5c111.tar.bz2 |
Fix pass-through mode
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r-- | programs/lz4cli.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c index 84499d0..c6b3cc1 100644 --- a/programs/lz4cli.c +++ b/programs/lz4cli.c @@ -340,6 +340,7 @@ int main(int argc, const char** argv) if (exeNameMatch(exeName, LZ4CAT)) { mode = om_decompress; LZ4IO_setOverwrite(1); + LZ4IO_setPassThrough(1); LZ4IO_setRemoveSrcFile(0); forceStdout=1; output_filename=stdoutmark; @@ -468,7 +469,11 @@ int main(int argc, const char** argv) case 'd': mode = om_decompress; break; /* Force stdout, even if stdout==console */ - case 'c': forceStdout=1; output_filename=stdoutmark; break; + case 'c': + forceStdout=1; + output_filename=stdoutmark; + LZ4IO_setPassThrough(1); + break; /* Test integrity */ case 't': mode = om_test; break; |