summaryrefslogtreecommitdiffstats
path: root/programs/lz4cli.c
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2022-07-01 08:45:12 (GMT)
committerYann Collet <cyan@fb.com>2022-07-01 08:45:12 (GMT)
commite23700d26345864b910669d826a973c1fb14ca32 (patch)
treebd891e930d1d0dbd46071a680509c3b18a734356 /programs/lz4cli.c
parent35565bf0dc118c8825c437ec320572b6c78a2a3e (diff)
downloadlz4-e23700d26345864b910669d826a973c1fb14ca32.zip
lz4-e23700d26345864b910669d826a973c1fb14ca32.tar.gz
lz4-e23700d26345864b910669d826a973c1fb14ca32.tar.bz2
fix #1086
just remove the specific code of #704, it's not necessary and produces side effects.
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r--programs/lz4cli.c10
1 files changed, 1 insertions, 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)) {