summaryrefslogtreecommitdiffstats
path: root/inspector
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-11-23 09:03:23 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-11-23 09:04:00 +0000
commitf8af59c234b6bea50dadc7a6055c8a4739ca4530 (patch)
treeea94566bdbdd79cc0976892fcc8f1f4d2ee95ded /inspector
parent938c98ad76bd896be750dbc69ade5e251afb8dea (diff)
downloadlibguestfs-f8af59c234b6bea50dadc7a6055c8a4739ca4530.tar.gz
libguestfs-f8af59c234b6bea50dadc7a6055c8a4739ca4530.tar.xz
libguestfs-f8af59c234b6bea50dadc7a6055c8a4739ca4530.zip
inspector: Make whole disk paths canonical (RHBZ#655554).
Diffstat (limited to 'inspector')
-rw-r--r--inspector/virt-inspector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inspector/virt-inspector.c b/inspector/virt-inspector.c
index 86d06543..ee7c9c38 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';
}