projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
684e07f
)
inotify: trailing whitespaces: comment and drop now superfluous chomp
author
Thomas Lamprecht
<t.lamprecht@proxmox.com>
Tue, 7 Apr 2020 16:12:54 +0000
(18:12 +0200)
committer
Thomas Lamprecht
<t.lamprecht@proxmox.com>
Tue, 7 Apr 2020 16:12:54 +0000
(18:12 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/INotify.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/INotify.pm
b/src/PVE/INotify.pm
index 871dedabebe4fd9b2609396812c4e48c3bcd3929..1eaec2191f365fc901793cd411678ec23ee08ef0 100644
(file)
--- a/
src/PVE/INotify.pm
+++ b/
src/PVE/INotify.pm
@@
-923,8
+923,7
@@
sub __read_etc_network_interfaces {
push @{$d->{families}}, $family;
while (defined ($line = <$fh>)) {
- chomp $line;
- $line =~ s/\s+$//;
+ $line =~ s/\s+$//; # drop trailing whitespaces
if ($line =~ m/^\s*#(.*?)\s*$/) {
$f->{comments} = '' if !$f->{comments};