mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user