grub/grub-core/kern/efi
Andrei Borzenkov 892dfbe113 efi: strip off final NULL from File Path in grub_efi_get_filename
UEFI 2.6 9.3.6.4 File Path Media Device Path says that Path Name is
"A NULL-terminated Path string including directory and file names".

Strip final NULL from Path Name in each File Path node when constructing
full path. To be on safe side, strip all of them.

Fixes failure chainloading grub from grub, when loaded grub truncates
image path and does not find its grub.cfg.

https://bugzilla.opensuse.org/show_bug.cgi?id=1026344

This was triggered by commit ce95549cc54b5d6f494608a7c390dba3aab4fba7;
before it we built Path Name without trailing NULL, and apparently all
other bootloaders use single File Path node, thus not exposing this bug.
2017-02-25 08:39:38 +03:00
..
acpi.c tsc: Use alternative delay sources whenever appropriate. 2015-11-27 11:39:55 +01:00
efi.c efi: strip off final NULL from File Path in grub_efi_get_filename 2017-02-25 08:39:38 +03:00
fdt.c efi: Move fdt helper into own file 2016-11-24 10:09:24 +01:00
init.c Fix fwpath in efi netboot 2016-12-22 22:37:32 +03:00
mm.c * grub-core/kern/efi/mm.c (grub_efi_get_memory_map): Never return a 2015-01-21 17:42:15 +01:00