summaryrefslogtreecommitdiffstats
path: root/programs
diff options
context:
space:
mode:
authorNick Terrell <terrelln@fb.com>2016-11-04 18:58:10 (GMT)
committerNick Terrell <terrelln@fb.com>2016-11-04 18:58:10 (GMT)
commit374090c7a760a839f2ee1701620d834d1d6ae724 (patch)
tree07ed58ff6496fa8885f860cc3251bb4984518273 /programs
parentf878c08b76a58e083c47470284139f3006c8e746 (diff)
downloadlz4-374090c7a760a839f2ee1701620d834d1d6ae724.zip
lz4-374090c7a760a839f2ee1701620d834d1d6ae724.tar.gz
lz4-374090c7a760a839f2ee1701620d834d1d6ae724.tar.bz2
Return error if input file does not exist.
Make `lz4 file-does-not-exist` return non-zero.
Diffstat (limited to 'programs')
-rw-r--r--programs/lz4cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c
index a6f4b4e..f77be3d 100644
--- a/programs/lz4cli.c
+++ b/programs/lz4cli.c
@@ -550,7 +550,7 @@ int main(int argc, const char** argv)
if (multiple_inputs)
operationResult = LZ4IO_decompressMultipleFilenames(inFileNames, ifnIdx, LZ4_EXTENSION);
else
- DEFAULT_DECOMPRESSOR(input_filename, output_filename);
+ operationResult = DEFAULT_DECOMPRESSOR(input_filename, output_filename);
} else {
/* compression is default action */
if (legacy_format) {
@@ -560,7 +560,7 @@ int main(int argc, const char** argv)
if (multiple_inputs)
operationResult = LZ4IO_compressMultipleFilenames(inFileNames, ifnIdx, LZ4_EXTENSION, cLevel);
else
- DEFAULT_COMPRESSOR(input_filename, output_filename, cLevel);
+ operationResult = DEFAULT_COMPRESSOR(input_filename, output_filename, cLevel);
}
}