From owner-svn-src-head@freebsd.org Fri Mar 3 20:23:20 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 59155CF72DD; Fri, 3 Mar 2017 20:23:20 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1A2D51093; Fri, 3 Mar 2017 20:23:20 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v23KNJNv063351; Fri, 3 Mar 2017 20:23:19 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v23KNJHQ063350; Fri, 3 Mar 2017 20:23:19 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201703032023.v23KNJHQ063350@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Fri, 3 Mar 2017 20:23:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r314621 - head/usr.sbin/efivar X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2017 20:23:20 -0000 Author: imp Date: Fri Mar 3 20:23:18 2017 New Revision: 314621 URL: https://svnweb.freebsd.org/changeset/base/314621 Log: 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 Modified: head/usr.sbin/efivar/efivar.c Modified: head/usr.sbin/efivar/efivar.c ============================================================================== --- head/usr.sbin/efivar/efivar.c Fri Mar 3 20:23:14 2017 (r314620) +++ head/usr.sbin/efivar/efivar.c Fri Mar 3 20:23:18 2017 (r314621) @@ -87,7 +87,7 @@ breakdown_name(char *name, efi_guid_t *g 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); }