Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N4mjq-0001yY-Rr for mharc-grub-devel@gnu.org; Sun, 01 Nov 2009 21:33:46 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4mjo-0001yL-TA for grub-devel@gnu.org; Sun, 01 Nov 2009 21:33:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4mjk-0001xl-Ae for grub-devel@gnu.org; Sun, 01 Nov 2009 21:33:44 -0500 Received: from [199.232.76.173] (port=45751 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4mjk-0001xi-56 for grub-devel@gnu.org; Sun, 01 Nov 2009 21:33:40 -0500 Received: from solo.fdn.fr ([80.67.169.19]:51496) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N4mjj-0007Dv-OT for grub-devel@gnu.org; Sun, 01 Nov 2009 21:33:39 -0500 Received: from const.ipv6 (youpi.is-a-geek.org [80.67.176.89]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by solo.fdn.fr (Postfix) with ESMTP id AE5D3441B8 for ; Mon, 2 Nov 2009 03:33:36 +0100 (CET) Received: from samy by const.ipv6 with local (Exim 4.69) (envelope-from ) id 1N4mje-0002X1-VB for grub-devel@gnu.org; Mon, 02 Nov 2009 03:33:34 +0100 Date: Mon, 2 Nov 2009 03:33:34 +0100 From: Samuel Thibault To: grub-devel@gnu.org Message-ID: <20091102023334.GD4557@const.famille.thibault.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="7AUc2qLy4jB3hD7Z" Content-Disposition: inline User-Agent: Mutt/1.5.12-2006-07-14 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [PATCH,HURD] Fix GNU/Hurd partition number X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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: Mon, 02 Nov 2009 02:33:45 -0000 --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, This patch fixes partition number translation on GNU/Hurd. Samuel --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename=patch Content-Transfer-Encoding: quoted-printable 2009-11-02 Samuel Thibault * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from GNU partition number to get internal grub DOS partition number. Index: util/hostdisk.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 --- util/hostdisk.c (r=E9vision 2666) +++ util/hostdisk.c (copie de travail) @@ -1057,7 +1057,7 @@ n =3D strtol (p, &q, 10); if (p !=3D q && n !=3D GRUB_LONG_MIN && n !=3D GRUB_LONG_MAX) { - dos_part =3D (int) n; + dos_part =3D (int) n - 1; =20 if (*q >=3D 'a' && *q <=3D 'g') bsd_part =3D *q - 'a'; --7AUc2qLy4jB3hD7Z--