• Andrei Borzenkov's avatar
    efi: strip off final NULL from File Path in grub_efi_get_filename · 892dfbe1
    Andrei Borzenkov authored
    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 ce95549c;
    before it we built Path Name without trailing NULL, and apparently all
    other bootloaders use single File Path node, thus not exposing this bug.
    892dfbe1
Name
Last commit
Last update
asm-tests Loading commit data...
build-aux Loading commit data...
conf Loading commit data...
docs Loading commit data...
grub-core Loading commit data...
include Loading commit data...
m4 Loading commit data...
po Loading commit data...
tests Loading commit data...
themes/starfield Loading commit data...
unicode Loading commit data...
util Loading commit data...
.gitignore Loading commit data...
ABOUT-NLS Loading commit data...
AUTHORS Loading commit data...
BUGS Loading commit data...
COPYING Loading commit data...
ChangeLog-2015 Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
Makefile.util.def Loading commit data...
NEWS Loading commit data...
README Loading commit data...
THANKS Loading commit data...
TODO Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
config.h.in Loading commit data...
configure.ac Loading commit data...
coreboot.cfg Loading commit data...
geninit.sh Loading commit data...
gentpl.py Loading commit data...
linguas.sh Loading commit data...