diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2020-02-07 18:17:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 18:17:33 (GMT) |
commit | 8372862e0f7e072cb206e96c70f6e1a796b66fe6 (patch) | |
tree | 0e44a36bb7e3e15edaed02f2a2ce1e18c5f9c6d2 /programs/lz4cli.c | |
parent | e55548b0bd553cc25d8c0994db6f5d49663fb3f5 (diff) | |
parent | ac4940cd98e55ae1fffd5f2f331d33c8cdb12b53 (diff) | |
download | lz4-8372862e0f7e072cb206e96c70f6e1a796b66fe6.zip lz4-8372862e0f7e072cb206e96c70f6e1a796b66fe6.tar.gz lz4-8372862e0f7e072cb206e96c70f6e1a796b66fe6.tar.bz2 |
Merge pull request #842 from filipecalasans/fix-list
Fix lz4cli --list option
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r-- | programs/lz4cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c index 94f466f..aadccab 100644 --- a/programs/lz4cli.c +++ b/programs/lz4cli.c @@ -670,7 +670,7 @@ int main(int argc, const char** argv) /* No output filename ==> try to select one automatically (when possible) */ while ((!output_filename) && (multiple_inputs==0)) { - if (!IS_CONSOLE(stdout)) { + if (!IS_CONSOLE(stdout) && mode != om_list) { /* Default to stdout whenever stdout is not the console. * Note : this policy may change in the future, therefore don't rely on it ! * To ensure `stdout` is explicitly selected, use `-c` command flag. |