mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Don't crash out if network config file is missing https://www.virtualmin.com/node/70222
This commit is contained in:
@@ -779,8 +779,7 @@ sub get_interface_defs
|
||||
{
|
||||
local *CFGFILE;
|
||||
my @ret;
|
||||
&open_readfile(CFGFILE, $network_interfaces_config) ||
|
||||
error("Unable to open $network_interfaces_config");
|
||||
&open_readfile(CFGFILE, $network_interfaces_config) || return ();
|
||||
# read the file line by line
|
||||
$line = <CFGFILE>;
|
||||
while (defined $line) {
|
||||
|
||||
Reference in New Issue
Block a user