[Bug 251025] efivar cannot write to EFI variables which have a ':' in their name

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 10 21:09:52 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251025

xtouqh at icloud.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xtouqh at icloud.com

--- Comment #1 from xtouqh at icloud.com ---
Looking at the error message and breakdown_name() in usr.sbin/efivar/efivar.c,
this rather looks like "efivar cannot write to EFI variables which have a '-'
in their name".  If you look at the code linked below, the issue is quite
obvious -- we use strrchr() to find the end of GUID, and in this case it's not
correct:

https://svnweb.freebsd.org/base/head/usr.sbin/efivar/efivar.c?revision=366165&view=markup#l87

This needs a better way of distinguishing between GUID and var name.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list