From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1R9C82-0003xS-QF for mharc-grub-devel@gnu.org; Thu, 29 Sep 2011 04:38:02 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9C7x-0003xK-Oi for grub-devel@gnu.org; Thu, 29 Sep 2011 04:38:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9C7t-0008NA-SY for grub-devel@gnu.org; Thu, 29 Sep 2011 04:37:57 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:65502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9C7t-0008N6-OE for grub-devel@gnu.org; Thu, 29 Sep 2011 04:37:53 -0400 Received: by wyf22 with SMTP id 22so31524wyf.0 for ; Thu, 29 Sep 2011 01:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=SujF2PR4siNLCMQStncyTr0kuxXX0o7VBWpZxvWTiWs=; b=urYgnITiaXHr37dYX+mD0V7YkXOQL9JZG1Uhpgn9qe550066z6vaqrD1B/ZMn5URI2 15HPmDkD8qAwI2sGzvuwmISe8T3MBT5UO+rRSoGpl0LiQZeIUEeyGdwYhBakYEpv0ACG PAblApPJgVIZ3D0vPsYBdl28rSwhejA/SSnR0= Received: by 10.216.132.136 with SMTP id o8mr801985wei.84.1317285472943; Thu, 29 Sep 2011 01:37:52 -0700 (PDT) Received: from debian.x201.phnet (hg-public-dock-105-dhcp.ethz.ch. [82.130.80.105]) by mx.google.com with ESMTPS id u16sm1388963wbm.5.2011.09.29.01.37.50 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Sep 2011 01:37:51 -0700 (PDT) Message-ID: <4E842E5D.1040106@gmail.com> Date: Thu, 29 Sep 2011 10:37:49 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Iceowl/1.0b2 Icedove/3.1.13 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: [PATCH 2/3] Use _fullpath instead of realpath on mingw32 References: <4E7A4DD5.3070300@dell.com> In-Reply-To: <4E7A4DD5.3070300@dell.com> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig1F184A276E7F61D2C54CCD61" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 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: Thu, 29 Sep 2011 08:38:01 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1F184A276E7F61D2C54CCD61 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Applied. Several stylistic problem (the uselessly nested #if being one of them) fixed. On 21.09.2011 22:49, Mario Limonciello wrote: > =3D=3D=3D modified file 'ChangeLog' > --- ChangeLog 2011-09-21 20:36:50 +0000 > +++ ChangeLog 2011-09-21 20:38:06 +0000 > @@ -1,6 +1,7 @@ > 2011-09-21 Mario Limonciello > > * Remove extra declaration of sleep for mingw32. > + * No realpath on mingw32. Instead use _fullpath. > > 2011-09-17 Gr=C3=A9goire Sutre > > > =3D=3D=3D modified file 'grub-core/kern/emu/misc.c' > --- grub-core/kern/emu/misc.c 2011-07-08 11:33:12 +0000 > +++ grub-core/kern/emu/misc.c 2011-09-21 20:38:06 +0000 > @@ -224,6 +224,11 @@ > canonicalize_file_name (const char *path) > { > char *ret; > +#ifdef __MINGW32__ > + ret =3D xmalloc(PATH_MAX); > + if (!_fullpath(ret, path, PATH_MAX)) > + return NULL; > +#else > #ifdef PATH_MAX > ret =3D xmalloc (PATH_MAX); > if (!realpath (path, ret)) > @@ -231,6 +236,7 @@ > #else > ret =3D realpath (path, NULL); > #endif > +#endif /* __MINGW32__ */ > return ret; > } > > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig1F184A276E7F61D2C54CCD61 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.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk6ELl0ACgkQNak7dOguQgmrCwD/XjZ+A/cwhZ9PAExzG55ohpTs dcExyNyZ3nbVSyI0/asA/jynt9hTpbXLDldirejoy9QJqlYDoz9PaZzWWiCydSYz =8Zck -----END PGP SIGNATURE----- --------------enig1F184A276E7F61D2C54CCD61--