From: Richard W.M. Jones Date: Tue, 23 Nov 2010 09:03:23 +0000 (+0000) Subject: inspector: Make whole disk paths canonical (RHBZ#655554). X-Git-Tag: 1.7.12~5 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=f8af59c234b6bea50dadc7a6055c8a4739ca4530;p=libguestfs.git inspector: Make whole disk paths canonical (RHBZ#655554). --- diff --git a/inspector/virt-inspector.c b/inspector/virt-inspector.c index 86d0654..ee7c9c3 100644 --- a/inspector/virt-inspector.c +++ b/inspector/virt-inspector.c @@ -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'; }