X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/0eb51736637f6c93a2fd6cb65316f8ae11f0a0be..383832efc13b2027e89426a952430158028a3b0f:/src/src/exigrep.src diff --git a/src/src/exigrep.src b/src/src/exigrep.src index 419fcb54c..bb994d769 100644 --- a/src/src/exigrep.src +++ b/src/src/exigrep.src @@ -2,7 +2,7 @@ use strict; -# Copyright (c) 2007-2014 University of Cambridge. +# Copyright (c) 2007-2015 University of Cambridge. # See the file NOTICE for conditions of use and distribution. # Except when they appear in comments, the following placeholders in this @@ -224,7 +224,7 @@ if (@ARGV) foreach (@ARGV) { my $filename = $_; - if ($filename =~ /\.(?:COMPRESS_SUFFIX)$/o) + if (-x 'ZCAT_COMMAND' && $filename =~ /\.(?:COMPRESS_SUFFIX)$/o) { open(LOG, "ZCAT_COMMAND $filename |") || die "Unable to zcat $filename: $!\n";