From b4d0ff66c1e64b6ba56f9e908c3f589feb063447 Mon Sep 17 00:00:00 2001 From: Josue Hernandez Date: Wed, 25 Feb 2026 09:48:00 -0600 Subject: [PATCH] get_entry: return entry if it was found before reaching the end of the list Resolves: RHEL-145517 Signed-off-by: Josue Hernandez --- 0001-Update-efibootmgr.c.patch | 24 ++++++++++++++++++++++++ efibootmgr.patches | 1 + efibootmgr.spec | 6 +++++- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0001-Update-efibootmgr.c.patch diff --git a/0001-Update-efibootmgr.c.patch b/0001-Update-efibootmgr.c.patch new file mode 100644 index 0000000..acc8010 --- /dev/null +++ b/0001-Update-efibootmgr.c.patch @@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: kmicki <1463619+kmicki@users.noreply.github.com> +Date: Tue, 15 Nov 2022 14:37:25 +0100 +Subject: [PATCH] Update efibootmgr.c + +get_entry: return entry if it was found before reaching the end of the list + +Signed-off-by: kmicki <1463619+kmicki@users.noreply.github.com> +--- + src/efibootmgr.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/efibootmgr.c b/src/efibootmgr.c +index b980bcd..4b15d6d 100644 +--- a/src/efibootmgr.c ++++ b/src/efibootmgr.c +@@ -1192,6 +1192,7 @@ get_entry(list_t *entries, uint16_t num) + entry = NULL; + continue; + } ++ return entry; + } + + return entry; diff --git a/efibootmgr.patches b/efibootmgr.patches index e69de29..db3a793 100644 --- a/efibootmgr.patches +++ b/efibootmgr.patches @@ -0,0 +1 @@ +Patch0001: 0001-Update-efibootmgr.c.patch diff --git a/efibootmgr.spec b/efibootmgr.spec index 2a49ea5..1f74932 100644 --- a/efibootmgr.spec +++ b/efibootmgr.spec @@ -2,7 +2,7 @@ Name: efibootmgr Version: 18 -Release: 8%{?dist} +Release: 9%{?dist} Summary: EFI Boot Manager License: GPL-2.0-or-later URL: https://github.com/rhboot/%{name}/ @@ -46,6 +46,10 @@ git config --local --add efibootmgr.efidir %{efi_vendor} %doc README %changelog +* Wed Feb 25 2026 Josue David Hernandez Gutierrez +- get_entry: return entry if it was found before reaching the end of the list + Resolves: RHEL-145517 + * Tue Oct 29 2024 Troy Dawson - Bump release for October 2024 mass rebuild: Resolves: RHEL-64018