Skip to content
Commit 7a88a622 authored by Philipp Fent's avatar Philipp Fent Committed by Ard Biesheuvel
Browse files

efi/libstub: Fix path separator regression

Commit 9302c1bb ("efi/libstub: Rewrite file I/O routine") introduced a
regression that made a couple of (badly configured) systems fail to
boot [1]: Until 5.6, we silently accepted Unix-style file separators in
EFI paths, which might violate the EFI standard, but are an easy to make
mistake. This fix restores the pre-5.7 behaviour.

[1] https://bbs.archlinux.org/viewtopic.php?id=256273



Fixes: 9302c1bb ("efi/libstub: Rewrite file I/O routine")
Signed-off-by: default avatarPhilipp Fent <fent@in.tum.de>
Link: https://lore.kernel.org/r/20200615115109.7823-1-fent@in.tum.de


[ardb: rewrite as chained if/else statements]
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 24552d10
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment