summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenaud Métrich <rmetrich@redhat.com>2024-06-04 15:24:35 +0200
committerPeter Jones <pjones@redhat.com>2025-01-17 14:45:32 -0500
commit27562ea4cecb9e332080bc77c644c3e0612b73a9 (patch)
treee91b152a9c8e22b7192c269a8cc3c01c9bee5bb3
parent0345331fa871650faaa5a34baa9c3b30fea10667 (diff)
downloadefi-boot-shim-27562ea4cecb9e332080bc77c644c3e0612b73a9.tar.gz
efi-boot-shim-27562ea4cecb9e332080bc77c644c3e0612b73a9.zip
Fix bad reference to PathName in image loading
Without the patch: ----------------------------------------------------------------------- Failed to open \EFI\BOOT\mmx64.efi - Not Found Failed to load image 貘給: Not Found ----------------------------------------------------------------------- With the patch: ----------------------------------------------------------------------- Failed to open \EFI\BOOT\mmx64.efi - Not Found Failed to load image \EFI\BOOT\mmx64.efi: Not Found ----------------------------------------------------------------------- Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
-rw-r--r--shim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shim.c b/shim.c
index 8d5ff589..bb54993f 100644
--- a/shim.c
+++ b/shim.c
@@ -1154,7 +1154,7 @@ EFI_STATUS read_image(EFI_HANDLE image_handle, CHAR16 *ImagePath,
efi_status = load_image(shim_li, data, datasize, *PathName);
if (EFI_ERROR(efi_status)) {
perror(L"Failed to load image %s: %r\n",
- PathName, efi_status);
+ *PathName, efi_status);
PrintErrors();
ClearErrors();
return efi_status;