resize: Fix canonical device function (RHBZ#655554).
[libguestfs.git] / tools / virt-resize
index 8a473ca..2d8e0f1 100755 (executable)
@@ -1394,7 +1394,7 @@ sub canonicalize
 {
     local $_ = shift;
 
-    if (m{^/dev/[hv]d([a-z]\d)$}) {
+    if (m{^/dev/[hv]d([a-z]\d*)$}) {
         return "/dev/sd$1";
     }
     $_;