inspector: Make whole disk paths canonical (RHBZ#655554).
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 23 Nov 2010 09:03:23 +0000 (09:03 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 23 Nov 2010 09:04:00 +0000 (09:04 +0000)
inspector/virt-inspector.c

index 86d0654..ee7c9c3 100644 (file)
@@ -632,7 +632,7 @@ canonicalize (char *dev)
       (dev[5] == 'h' || dev[5] == 'v') &&
       dev[6] == 'd' &&
       c_isalpha (dev[7]) &&
-      c_isdigit (dev[8]))
+      (c_isdigit (dev[8]) || dev[8] == '\0'))
     dev[5] = 's';
 }