5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2025-03-11 20:58:42 +03:00

safer disk matching

This commit is contained in:
Wolfgang Bumiller 2015-11-25 08:40:48 +01:00 committed by Dietmar Maurer
parent 770a8ff2ee
commit fa07b081d3

View File

@ -760,7 +760,7 @@ sub parse_disks {
my $disk = undef;
my $stor = undef;
if($line =~ m/^(?:((?:virtio|ide|scsi|sata|mp)\d+)|rootfs): (.+:)([A-Za-z0-9\-]+),(.*)$/) {
if($line =~ m/^(?:((?:virtio|ide|scsi|sata|mp)\d+)|rootfs): ([^:]+:)([A-Za-z0-9\-]+),(.*)$/) {
$disk = $3;
$stor = $2;
} else {