diff options
author | Andrew Colin Kissa <andrew@topdog.za.net> | 2014-07-02 07:00:46 -0700 |
---|---|---|
committer | Todd Lyons <tlyons@exim.org> | 2014-07-02 07:00:46 -0700 |
commit | 3ae173e7c0fd026a06c8804d38fe2c03d161e402 (patch) | |
tree | 9f5b9f20710e70f18f051cf93940d8a7a8ce385d /src | |
parent | 7e75538e9b2d735ebe7a2832482353861ec4dff0 (diff) |
Bug 1495: Exiqgrep -C check configfile readability
Diffstat (limited to 'src')
-rw-r--r-- | src/src/exiqgrep.src | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/exiqgrep.src b/src/src/exiqgrep.src index 94b17f58b..afecbffee 100644 --- a/src/src/exiqgrep.src +++ b/src/src/exiqgrep.src @@ -46,7 +46,7 @@ if ($^O eq 'darwin') { # aka MacOS X getopts('hf:r:y:o:s:C:zxlibRca',\%opt); 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(); |