]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/INotify.pm
Inotify: read_interfaces : remove trailing whitespaces
[pve-common.git] / src / PVE / INotify.pm
index 3fa5af62777db77a73252c4cf64017b8c5939459..871dedabebe4fd9b2609396812c4e48c3bcd3929 100644 (file)
@@ -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);