bug: efi_print_global only checks for the first 5 letters of "Driver"

As a result, it is only really checking for the word Drive, making
"Drive" appended to anything else considered for efi env.

Reviewed by:	imp, kevans
Pull Request:	https://github.com/freebsd/freebsd-src/pull/738
This commit is contained in:
Alfonso Gregory 2023-05-08 17:48:50 -04:00 committed by Kyle Evans
parent e6f37dce96
commit 39ae24e3bf

View file

@ -537,7 +537,7 @@ efi_print_global(const CHAR16 *varnamearg, uint8_t *data, UINTN datasz)
goto done;
}
if (strncmp("Boot", var, 4) == 0 ||
strncmp("Driver", var, 5) == 0 ||
strncmp("Driver", var, 6) == 0 ||
strncmp("SysPrep", var, 7) == 0 ||
strncmp("OsRecovery", var, 10) == 0) {
UINT16 filepathlistlen;