X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Fexigrep.src;h=bb994d7697f35ead2e493a354677eba7aeb24c37;hb=62b7cd086e8f69c7bb1334edd2e586ed6240b134;hp=419fcb54ccf711121d46fea1afd985b6f4c979f8;hpb=0eb51736637f6c93a2fd6cb65316f8ae11f0a0be;p=exim.git 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";