Received: from list by monty-python.gnu.org with archive (Exim 4.34) id 1BRlVP-0008QT-GF for mharc-grub-devel@gnu.org; Sun, 23 May 2004 01:26:39 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BRlVI-0008P4-Oj for grub-devel@gnu.org; Sun, 23 May 2004 01:26:32 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BRlUg-0008Ez-UB for grub-devel@gnu.org; Sun, 23 May 2004 01:26:28 -0400 Received: from [212.250.162.6] (helo=dircache04-winn.maildmz.private.ntl.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BRlUg-0008DW-2P for grub-devel@gnu.org; Sun, 23 May 2004 01:25:54 -0400 Received: from bfg.reinhouse.freeserve.co.uk ([217.137.179.35]) by fep05-winn.maildmz.private.ntl.com with SMTP id <20040522124745.SIPR13540.fep05-winn.maildmz.private.ntl.com@bfg.reinhouse.freeserve.co.uk> for ; Sat, 22 May 2004 13:47:45 +0100 Received: from tim by bfg.reinhouse.freeserve.co.uk with local (Exim 4.32) id 1BRVtx-0000hP-Sz for grub-devel@gnu.org; Sat, 22 May 2004 13:46:58 +0100 From: Timothy Baldwin To: grub-devel@gnu.org Date: Sat, 22 May 2004 13:44:47 +0100 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_At0rA9tUXEuVn+0"; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200405221344.48097.timothy.baldwin1@tesco.net> Sender: Timothy Baldwin Subject: Fix for rescue mode crashes X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 May 2004 05:26:36 -0000 --Boundary-02=_At0rA9tUXEuVn+0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Rescue mode crashes when a null string is entered (only sometimes on bochs)= =2E=20 Here is a patch to fix it: Index: kern/rescue.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/grub/grub2/kern/rescue.c,v retrieving revision 1.8 diff -u -r1.8 rescue.c =2D-- kern/rescue.c 4 Apr 2004 13:46:02 -0000 1.8 +++ kern/rescue.c 21 May 2004 09:28:32 -0000 @@ -676,12 +676,12 @@ /* Get a command line. */ grub_rescue_get_command_line ("grub rescue> "); =2D if (grub_split_cmdline (line, getline, &n, &args)) + if (grub_split_cmdline (line, getline, &n, &args) || n < 0) continue; =2D-=20 Member AFFS, WYLUG, SWP (UK), ANL, RESPECT, Leeds SA, Leeds Anti-war coalit= ion No to software patents! No to DRM/EUCD - hands off our computers! --Boundary-02=_At0rA9tUXEuVn+0 Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBAr0tAjXSPyZ9/z+QRArC7AJwL1bhMBrAPelAT33fcq2pRzIuV3QCgyprP kq6eYq3hw4BhblRa5l4KyGo= =Qho9 -----END PGP SIGNATURE----- --Boundary-02=_At0rA9tUXEuVn+0--