Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2023 03:10:53 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 679ff7a0c58a - stable/13 - bug: efi_print_global only checks for the first 5 letters of "Driver"
Message-ID:  <202307120310.36C3ArB2010385@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=679ff7a0c58a64ca5d11e235b7ba74fdebc3bc37

commit 679ff7a0c58a64ca5d11e235b7ba74fdebc3bc37
Author:     Alfonso Gregory <gfunni234@gmail.com>
AuthorDate: 2023-05-08 21:48:50 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2023-07-11 15:05:31 +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
    
    (cherry picked from commit 39ae24e3bf1c8e7d053d0249a6bc88f65eff6de1)
---
 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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307120310.36C3ArB2010385>