[pve-devel] [PATCH pve-zsync] safer disk matching

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Nov 25 08:40:48 CET 2015


---
 pve-zsync | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pve-zsync b/pve-zsync
index 19a8f5a..bfc1793 100644
--- a/pve-zsync
+++ b/pve-zsync
@@ -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 {
-- 
2.1.4





More information about the pve-devel mailing list