git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
938c98a
)
inspector: Make whole disk paths canonical (RHBZ#655554).
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 23 Nov 2010 09:03:23 +0000
(09:03 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 23 Nov 2010 09:04:00 +0000
(09:04 +0000)
inspector/virt-inspector.c
patch
|
blob
|
history
diff --git
a/inspector/virt-inspector.c
b/inspector/virt-inspector.c
index
86d0654
..
ee7c9c3
100644
(file)
--- 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';
}