From e23700d26345864b910669d826a973c1fb14ca32 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Fri, 1 Jul 2022 01:45:12 -0700 Subject: fix #1086 just remove the specific code of #704, it's not necessary and produces side effects. --- programs/lz4cli.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/programs/lz4cli.c b/programs/lz4cli.c index 26148ee..54a2e03 100644 --- a/programs/lz4cli.c +++ b/programs/lz4cli.c @@ -666,15 +666,7 @@ int main(int argc, const char** argv) if (!strcmp(input_filename, stdinmark)) { /* if input==stdin and no output defined, stdout becomes default output */ if (!output_filename) output_filename = stdoutmark; - } else { /* input != stdin, so it's a file name */ -#ifdef UTIL_HAS_CREATEFILELIST - if (!recursive && !UTIL_isRegFile(input_filename)) { -#else - if (!UTIL_isRegFile(input_filename)) { -#endif - DISPLAYLEVEL(1, "%s: is not a regular file \n", input_filename); - exit(1); - } } + } /* No output filename ==> try to select one automatically (when possible) */ while ((!output_filename) && (multiple_inputs==0)) { -- cgit v0.12