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:
imp 2017-03-03 20:23:18 +00:00
parent 6bb5475136
commit 57fd1f8ad6

View File

@ -87,7 +87,7 @@ breakdown_name(char *name, efi_guid_t *guid, char **vname)
errx(1, "Invalid name: %s", name);
*vname = cp + 1;
*cp = '\0';
if (efi_str_to_guid(name, guid) < 0)
if (efi_name_to_guid(name, guid) < 0)
errx(1, "Invalid guid %s", name);
}