Handle /dev/sdaa names
authorJamie Cameron <jcameron@webmin.com>
Tue, 25 Aug 2009 16:21:30 +0000 (09:21 -0700)
committerJamie Cameron <jcameron@webmin.com>
Tue, 25 Aug 2009 16:21:30 +0000 (09:21 -0700)
mount/linux-lib.pl

index 552dabf..f284a63 100755 (executable)
@@ -2510,9 +2510,9 @@ if (!$text{'select_part'}) {
                $text{$k} = $flang{$k} if ($k =~ /^select_/);
                }
        }
-return $_[0] =~ /^\/dev\/(s|h)d([a-z])(\d+)$/ ?
+return $_[0] =~ /^\/dev\/(s|h)d([a-z]+)(\d+)$/ ?
        &text('select_part', $1 eq 's' ? 'SCSI' : 'IDE', uc($2), "$3") :
-       $_[0] =~ /^\/dev\/(s|h)d([a-z])$/ ?
+       $_[0] =~ /^\/dev\/(s|h)d([a-z]+)$/ ?
        &text('select_device', $1 eq 's' ? 'SCSI' : 'IDE', uc($2)) :
        $_[0] =~ /rd\/c(\d+)d(\d+)p(\d+)$/ ?
        &text('select_mpart', "$1", "$2", "$3") :