X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Fexiqgrep.src;h=2c52f137fc9a3d3f60b0928df5d683fdd68705ed;hb=5fb822fc4839e253d2f839ba7966bc25a5329ac1;hp=94b17f58bbcf2b999591167178446727f06f4a43;hpb=d502442ac32f8964f6cf86469869cecb035d12c0;p=exim.git diff --git a/src/src/exiqgrep.src b/src/src/exiqgrep.src index 94b17f58b..2c52f137f 100644 --- a/src/src/exiqgrep.src +++ b/src/src/exiqgrep.src @@ -44,9 +44,10 @@ if ($^O eq 'darwin') { # aka MacOS X }; getopts('hf:r:y:o:s:C:zxlibRca',\%opt); +if ($ARGV[0]) { &help; exit;} if ($opt{h}) { &help; exit;} if ($opt{a}) { $eargs = '-bp'; } -if ($opt{C}) { $eargs .= ' -C '.$opt{C}; } +if ($opt{C} && -e $opt{C} && -f $opt{C} && -R $opt{C}) { $eargs .= ' -C '.$opt{C}; } # Read message queue output into hash &collect();