From f8af59c234b6bea50dadc7a6055c8a4739ca4530 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 23 Nov 2010 09:03:23 +0000 Subject: inspector: Make whole disk paths canonical (RHBZ#655554). --- inspector/virt-inspector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inspector') 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'; } -- cgit