From edeb313e6e7257b858da06d562ac74468a48129f Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Mon, 9 Nov 2015 14:33:56 -0500 Subject: shim: check for EFI\BOOT\BOOT${ARCH}.EFI as well as the leading \ version I found a machine whose BDS gives us relative paths, yay! The rest of the code still works without that leading slash, so just make it one more item we let through our StrnCaseCmp() filter. Signed-off-by: Peter Jones --- shim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shim.c') diff --git a/shim.c b/shim.c index d64d15be..c93d96d2 100644 --- a/shim.c +++ b/shim.c @@ -1290,7 +1290,9 @@ should_use_fallback(EFI_HANDLE image_handle) * L"\\EFI\\BOOT\\/BOOTX64.EFI". So just handle that here... */ if (StrnCaseCmp(bootpath, L"\\EFI\\BOOT\\BOOT", 14) && - StrnCaseCmp(bootpath, L"\\EFI\\BOOT\\/BOOT", 15)) + StrnCaseCmp(bootpath, L"\\EFI\\BOOT\\/BOOT", 15) && + StrnCaseCmp(bootpath, L"EFI\\BOOT\\BOOT", 13) && + StrnCaseCmp(bootpath, L"EFI\\BOOT\\/BOOT", 14)) goto error; pathlen = StrLen(bootpath); -- cgit v1.2.3