HomeFreeBSD

Fail to open efirt device when no EFI on system.

Description

Fail to open efirt device when no EFI on system.

libefivar expects opening /dev/efi to indicate if the we can make efi
runtime calls. With a null routine, it was always succeeding leading
efi_variables_supported() to return the wrong value. Only succeed if
we have an efi_runtime table. Also, while I'm hear, out of an
abundance of caution, add a likely redundant check to make sure
efi_systbl is not NULL before dereferencing it. I know it can't be
NULL if efi_cfgtbl is non-NULL, but the compiler doesn't.

Details

Provenance
impAuthored on
Parents
rS322277: rwho/ruptime/rwhod shouldn't be gated by RCMDS.
Branches
Unknown
Tags
Unknown