]> git.proxmox.com Git - pve-common.git/commitdiff
Inotify: read_interfaces : remove trailing whitespaces
authorAlexandre Derumier <aderumier@odiso.com>
Sun, 5 Apr 2020 08:33:00 +0000 (10:33 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 7 Apr 2020 16:10:47 +0000 (18:10 +0200)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
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);