If the guid specified can't be decoded as a GUID, try looking it up in
the known guid to name table. Sponsored by: Netflix
This commit is contained in:
parent
9e4a51a860
commit
f2d626ab0e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314621
@ -87,7 +87,7 @@ breakdown_name(char *name, efi_guid_t *guid, char **vname)
|
|||||||
errx(1, "Invalid name: %s", name);
|
errx(1, "Invalid name: %s", name);
|
||||||
*vname = cp + 1;
|
*vname = cp + 1;
|
||||||
*cp = '\0';
|
*cp = '\0';
|
||||||
if (efi_str_to_guid(name, guid) < 0)
|
if (efi_name_to_guid(name, guid) < 0)
|
||||||
errx(1, "Invalid guid %s", name);
|
errx(1, "Invalid guid %s", name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user