mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Fail fast if config doesn't exist https://sourceforge.net/p/webadmin/bugs/4422/
This commit is contained in:
@@ -11,7 +11,7 @@ sub get_config
|
||||
{
|
||||
if (!@get_config_cache) {
|
||||
my $fh = "CONF";
|
||||
&open_readfile($fh, $config{'squid_conf'});
|
||||
&open_readfile($fh, $config{'squid_conf'}) || return [];
|
||||
my $lnum = 0;
|
||||
while(my $line = <$fh>) {
|
||||
$line =~ s/\r|\n//g; # strip newlines and comments
|
||||
|
||||
Reference in New Issue
Block a user