]> git.proxmox.com Git - pve-common.git/commit
Fix 2339: Handle multiple blank lines correctly in SectionConfig
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 28 Aug 2019 09:22:38 +0000 (11:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 4 Sep 2019 14:17:55 +0000 (16:17 +0200)
commite1fbb779f7dc04be6e8925e790879b770adf0d2a
tree07c4321b79e2e9c6ce39577b33bb6fd22ed03808
parent9e3aaec49438e701821fa798d86375fe66fab4e3
Fix 2339: Handle multiple blank lines correctly in SectionConfig

It turns out that the line number counting was also broken (even on
files without multiple blanks), since the body of the while inside
the nextline subroutine would not be executed for a blank.
I guess the subroutine was intended to skip comments and blanks, but
since we use blanks to recognize the end of a section, I changed it
to only skip comments.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
src/PVE/SectionConfig.pm