diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-04 09:56:21 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-05 12:18:22 +0100 |
commit | bc169eb5b0591965c2716bd780b211e2bf3b3985 (patch) | |
tree | 7846f4358d6e038794d00838f4256b43b83e9f32 /config/grub/default/patches/0004-Define-GRUB_UINT32_MAX.patch | |
parent | 2adaef73ac5ca8337a0c92eb0be9dedfb3c1375c (diff) |
lbmk: MUCH safer err function
Don't directly call a variable. Call a function that
checks the variable instead.
The new err function also checks whether an exit was
actually done, and exits 1 if not.
If an exit was done by the given function, but the exit
was zero, this is also corrected to perform an exit 1.
This fixes a longstanding design flaw of lbmk.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/grub/default/patches/0004-Define-GRUB_UINT32_MAX.patch')
0 files changed, 0 insertions, 0 deletions