From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OUQoy-0004to-HP for mharc-grub-devel@gnu.org; Thu, 01 Jul 2010 16:57:20 -0400 Received: from [140.186.70.92] (port=38092 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUQoq-0004ou-OO for grub-devel@gnu.org; Thu, 01 Jul 2010 16:57:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUQol-00044o-T3 for grub-devel@gnu.org; Thu, 01 Jul 2010 16:57:12 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:38737) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUQol-00044g-JM for grub-devel@gnu.org; Thu, 01 Jul 2010 16:57:07 -0400 Received: by fxm17 with SMTP id 17so1978960fxm.0 for ; Thu, 01 Jul 2010 13:57:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=/xHysOru8cTeb8kiauLFd01wCRaooqEYsbQW0aJdykg=; b=AvTxC+VVA5fPY6/H1Co67GBU4giCh149vyorcpVQjO1YcroM6/QzItUny5tuyyv0XK DCD2+HdVvU4tK1CO1AD2qvCc34idqSORazaO43+y1RuyfM/55EaLjp4R9DjuGrBdB2Dp i4SjPPIAhA+P397qwxSQjDxmkjeUsl6Tav1YI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=Pd9tPBWj5lHbDQSYF1LxGgOX+l+PG6YnFJ+DHUxrrVncqVIWsozkx1aYlYy3hH6/sQ pFgUZtJk2W6MbOGPSLwVaaDQYTi0gp+yOhWUu3V4vKEekDL/VXWNgFG8zWuGb5SvDu8I p25Tsjsno0kaH78eYXehR20iOqoLoRgHIYNDo= Received: by 10.204.84.18 with SMTP id h18mr59478bkl.41.1278017826366; Thu, 01 Jul 2010 13:57:06 -0700 (PDT) Received: from debian.bg45.phnet ([81.62.28.146]) by mx.google.com with ESMTPS id bi18sm13967419bkb.21.2010.07.01.13.57.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Jul 2010 13:57:04 -0700 (PDT) Message-ID: <4C2D011C.3020401@gmail.com> Date: Thu, 01 Jul 2010 22:57:00 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100515 Icedove/3.0.4 MIME-Version: 1.0 To: grub-devel@gnu.org References: <20100613104811.GM21862@riva.ucam.org> In-Reply-To: <20100613104811.GM21862@riva.ucam.org> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigA2F8F41CDD932241D7C66C5F" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] Fix grub-probe partition naming on FreeBSD X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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: Thu, 01 Jul 2010 20:57:17 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA2F8F41CDD932241D7C66C5F Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 06/13/2010 12:48 PM, Colin Watson wrote: > The following patch is aimed at fixing this Debian bug: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D585068 > > > +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) > +static int > +device_is_wholedisk (const char *os_dev) > +{ > + const char *p; > + > + if (strncmp (os_dev, "/dev/", 5) !=3D 0) > + return 0; > + > + for (p =3D os_dev + 5; *p; ++p) > =20 Please use sizeof. Other than that please go ahead. --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigA2F8F41CDD932241D7C66C5F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkwtAR0ACgkQNak7dOguQgmm+AD9HcOjAFUsTtQT+UXVb9+Ntxmo l4SX/U0p7gTHMgSgVnAA/1/YL6jZnyulZZhnfpledIIn6dbxzWyo4GytwnoGDk8Z =YOf2 -----END PGP SIGNATURE----- --------------enigA2F8F41CDD932241D7C66C5F--