Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Z2jMS-00019V-8x for mharc-grub-devel@gnu.org; Wed, 10 Jun 2015 13:00:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2jMK-000197-VM for grub-devel@gnu.org; Wed, 10 Jun 2015 13:00:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2jME-0007Fu-1a for grub-devel@gnu.org; Wed, 10 Jun 2015 13:00:12 -0400 Received: from gg6-2.genua.de ([2001:a60:f08e:c000::2]:35393 helo=gg.genua.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2jMD-000766-J9 for grub-devel@gnu.org; Wed, 10 Jun 2015 13:00:05 -0400 Received: from gg.genua.de (localhost.genua.de [127.0.0.1]) by gg.genua.de (8.14.8/8.14.8) with ESMTP id t5AGU5TL006342 for ; Wed, 10 Jun 2015 18:30:05 +0200 (CEST) Received: (from localhost) by gg.genua.de (MSCAN) id 3/gg.genua.de/smtp-gw/mscan; Wed Jun 10 18:30:04 2015 From: Florian Kaiser To: grub-devel@gnu.org Subject: [PATCH] broken ESC navigation if authentication is used Date: Wed, 10 Jun 2015 18:29:59 +0200 User-Agent: KMail/1.9.10 (enterprise35 0.20130718.c93b994) MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_HYGeV+xYkN/HC+e" Message-Id: <201506101829.59882.florian_kaiser@genua.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:a60:f08e:c000::2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2015 17:00:19 -0000 --Boundary-00=_HYGeV+xYkN/HC+e Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, we are using grub2 with authentication enabled and multiple submenus. Unfortunately it is not possible to return to a previous menu with ESC with= out=20 triggering a superuser password prompt. This is not the desired behavior in= =20 my opinion. I attached a patch to this email, which removes the password prompt when=20 pressing escape. Thank you very much in advance =46lorian Kaiser Microkernel Systems tel +49 89 991950 - 0 florian_kaiser@genua.de ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ genua Gesellschaft f=FCr Netzwerk - und Unix-Administration mbH Domagkstr. 7, D-85551 Kirchheim. http://www.genua.de Tel: (089) 99 19 50-0, Fax: (089) 99 19 50 - 999 Gesch=E4ftsf=FChrer: Dr. Magnus Harlander, Dr. Michaela Harlander, Bernhard Schneck. Amtsgericht M=FCnchen HRB 98238 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --Boundary-00=_HYGeV+xYkN/HC+e Content-Type: text/x-diff; charset="iso-8859-15"; name="0001-grub-fix-broken-authorization-behavior-when-pressing.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-grub-fix-broken-authorization-behavior-when-pressing.patch" =46rom 1c4129d2f1751ae387fc5fd4073d70a3fa80f1e2 Mon Sep 17 00:00:00 2001 =46rom: Florian Kaiser Date: Tue, 9 Jun 2015 19:01:03 +0200 Subject: [PATCH] grub: fix broken authorization behavior when pressing ESC This change removes a superfluous authorization request, which prevented the user from navigating backwards through the menu tree using the ESC Key. Change-Id: Ia4cd9ce45241e70758a6eeac4a2b33a9d73c0c6e =2D-- contrib/grub2/grub-core/normal/menu.c | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/contrib/grub2/grub-core/normal/menu.c b/contrib/grub2/grub-cor= e/normal/menu.c index b47991a..27978a6 100644 =2D-- a/contrib/grub2/grub-core/normal/menu.c +++ b/contrib/grub2/grub-core/normal/menu.c @@ -886,27 +886,10 @@ show_menu (grub_menu_t menu, int nested, int autoboot= ed) grub_err_t grub_show_menu (grub_menu_t menu, int nested, int autoboot) { =2D grub_err_t err1, err2; + grub_err_t err; =20 =2D while (1) =2D { =2D err1 =3D show_menu (menu, nested, autoboot); =2D autoboot =3D 0; =2D grub_print_error (); =2D =2D if (grub_normal_exit_level) =2D break; =2D =2D err2 =3D grub_auth_check_authentication (NULL); =2D if (err2) =2D { =2D grub_print_error (); =2D grub_errno =3D GRUB_ERR_NONE; =2D continue; =2D } =2D =2D break; =2D } + err =3D show_menu (menu, nested, autoboot); + grub_print_error (); =20 =2D return err1; + return err; } =2D-=20 1.7.10.4 --Boundary-00=_HYGeV+xYkN/HC+e--