v2v: Fix incorrect calculation of lc_basename.

We should be using the lowercase path.  Prior to this patch
lc_basename was not actually lowercase.

Fixes commit f7249a0bcc.
This commit is contained in:
Richard W.M. Jones
2016-03-04 10:20:06 +00:00
parent f33e127d87
commit d5b3aa0cca

View File

@@ -417,7 +417,7 @@ and virtio_iso_path_matches_guest_os path inspect =
* elements.
*)
let lc_path = String.lowercase_ascii path in
let lc_basename = Filename.basename path in
let lc_basename = Filename.basename lc_path in
let extension =
match last_part_of lc_basename '.' with