X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FINotify.pm;fp=src%2FPVE%2FINotify.pm;h=871dedabebe4fd9b2609396812c4e48c3bcd3929;hp=3fa5af62777db77a73252c4cf64017b8c5939459;hb=684e07f2dd9ce50169598070e49b6c96378c7a40;hpb=5c183fd276598a42494762ab289af1c7859d728a diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm index 3fa5af6..871deda 100644 --- a/src/PVE/INotify.pm +++ b/src/PVE/INotify.pm @@ -924,6 +924,8 @@ sub __read_etc_network_interfaces { while (defined ($line = <$fh>)) { chomp $line; + $line =~ s/\s+$//; + if ($line =~ m/^\s*#(.*?)\s*$/) { $f->{comments} = '' if !$f->{comments}; my $comment = decode('UTF-8', $1);