mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Better handle out of order lines https://forum.virtualmin.com/t/perl-execution-error-when-trying-to-edit-an-lvm-through-webmin/116129
This commit is contained in:
@@ -405,7 +405,7 @@ if (&get_lvm_version() >= 2) {
|
||||
elsif (/\s+Logical\s+volume\s+([a-z0-9\_]+)/i) {
|
||||
push(@raids, [ $1, undef ]);
|
||||
}
|
||||
elsif (/\s+Logical\s+extents\s+(\d+)\s+to\s+(\d+)/ && @rv) {
|
||||
elsif (/\s+Logical\s+extents\s+(\d+)\s+to\s+(\d+)/ && @raids) {
|
||||
$raids[$#raid]->[1] = $2-$1+1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user