[pve-devel] cidr bug with trailing spaces in /etc/network/interfaces
Alexandre DERUMIER
aderumier at odiso.com
Sun Apr 5 09:58:30 CEST 2020
Hi,
user have reported a bug on pve-user mailing list,
it seem that cidr conversion from address && netmask, is not working correctly
if some trailing spaces are present.
something like
"address 192.168.0.1 "
"netmask 255.255.255.0"
is converted to "192.168.0.1 /24"
and
"address 192.168.0.1 "
"netmask 255.255.255.0 "
is converted to "192.168.0.1 /32"
I think the regex in INotify.pm
} elsif ($line =~ m/^\s*((\S+)\s+(.+))$/) {
should be changed to not read the trailing spaces
More information about the pve-devel
mailing list