diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-11-23 09:03:23 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-11-23 09:04:00 +0000 |
commit | f8af59c234b6bea50dadc7a6055c8a4739ca4530 (patch) | |
tree | ea94566bdbdd79cc0976892fcc8f1f4d2ee95ded /inspector | |
parent | 938c98ad76bd896be750dbc69ade5e251afb8dea (diff) | |
download | libguestfs-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.c | 2 |
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'; } |