git: 39ae24e3bf1c - main - bug: efi_print_global only checks for the first 5 letters of "Driver"

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Fri, 23 Jun 2023 03:32:31 UTC
The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=39ae24e3bf1c8e7d053d0249a6bc88f65eff6de1

commit 39ae24e3bf1c8e7d053d0249a6bc88f65eff6de1
Author:     Alfonso Gregory <gfunni234@gmail.com>
AuthorDate: 2023-05-08 21:48:50 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2023-06-23 03:31:58 +0000

    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
---
 stand/efi/libefi/env.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stand/efi/libefi/env.c b/stand/efi/libefi/env.c
index 77e232343040..1d70e78e2a64 100644
--- a/stand/efi/libefi/env.c
+++ b/stand/efi/libefi/env.c
@@ -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;