From cdce8a21864d236c42cb130d3f63179d175ddda7 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 25 Jan 2013 15:59:13 -0800 Subject: [PATCH] Handle case where no flag is set https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3602166&group_id=17457 --- fdisk/fdisk-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdisk/fdisk-lib.pl b/fdisk/fdisk-lib.pl index 9d4be872a..7018ed940 100755 --- a/fdisk/fdisk-lib.pl +++ b/fdisk/fdisk-lib.pl @@ -467,7 +467,7 @@ while() { $disk->{'cylsize'}; push(@{$disk->{'parts'}}, $part); } - elsif (/^\s*(\d+)\s+(\d+)cyl\s+(\d+)cyl\s+(\d+)cyl\s+(\S+)\s+(\S+)\s+(\S+)/) { + elsif (/^\s*(\d+)\s+(\d+)cyl\s+(\d+)cyl\s+(\d+)cyl\s+(\S+)\s+(\S+)\s+(\S*)/) { # Partition within the current disk from parted (gpt format) local $part = { 'number' => $1, 'device' => $disk->{'device'}.$1,