aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-03-03 20:23:18 +0000
committerWarner Losh <imp@FreeBSD.org>2017-03-03 20:23:18 +0000
commitf2d626ab0ea61f1a4e1afbaef6862ce9ed242ac8 (patch)
tree094ba34f269f39a8472068269d084ec0ee3bf954 /usr.sbin
parent9e4a51a860e90439f60b4fcfdd3ae03042d2c72a (diff)
downloadsrc-f2d626ab0ea61f1a4e1afbaef6862ce9ed242ac8.tar.gz
src-f2d626ab0ea61f1a4e1afbaef6862ce9ed242ac8.zip
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
Notes
Notes: svn path=/head/; revision=314621
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/efivar/efivar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/efivar/efivar.c b/usr.sbin/efivar/efivar.c
index d877eb1b9cc2..b0fa347a34bd 100644
--- a/usr.sbin/efivar/efivar.c
+++ b/usr.sbin/efivar/efivar.c
@@ -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);
}