git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 1.7.23.
[libguestfs.git]
/
inspector
/
virt-inspector.c
diff --git
a/inspector/virt-inspector.c
b/inspector/virt-inspector.c
index
86d0654
..
d3e00a9
100644
(file)
--- a/
inspector/virt-inspector.c
+++ b/
inspector/virt-inspector.c
@@
-118,11
+118,9
@@
main (int argc, char *argv[])
};
struct drv *drvs = NULL;
struct drv *drv;
};
struct drv *drvs = NULL;
struct drv *drv;
- char *p, *file = NULL;
const char *format = NULL;
int c;
int option_index;
const char *format = NULL;
int c;
int option_index;
- int next_prepared_drive = 1;
g = guestfs_create ();
if (g == NULL) {
g = guestfs_create ();
if (g == NULL) {
@@
-632,7
+630,7
@@
canonicalize (char *dev)
(dev[5] == 'h' || dev[5] == 'v') &&
dev[6] == 'd' &&
c_isalpha (dev[7]) &&
(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';
}
dev[5] = 's';
}