don't try to open configuration files that does not exist.
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@151 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
078ab57dd5
commit
1eafaba4e9
@ -77,6 +77,7 @@ sub get_qmail_config {
|
|||||||
return \%h;
|
return \%h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return unless -e $configfile;
|
||||||
open CF, "<$configfile" or warn "$$ could not open configfile $configfile: $!" and return;
|
open CF, "<$configfile" or warn "$$ could not open configfile $configfile: $!" and return;
|
||||||
my @config = <CF>;
|
my @config = <CF>;
|
||||||
chomp @config;
|
chomp @config;
|
||||||
|
Loading…
Reference in New Issue
Block a user