From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH 2/3] Use _fullpath instead of realpath on mingw32
Date: Thu, 29 Sep 2011 10:37:49 +0200 [thread overview]
Message-ID: <4E842E5D.1040106@gmail.com> (raw)
In-Reply-To: <4E7A4DD5.3070300@dell.com>
[-- Attachment #1: Type: text/plain, Size: 1369 bytes --]
Applied. Several stylistic problem (the uselessly nested #if being one
of them) fixed.
On 21.09.2011 22:49, Mario Limonciello wrote:
> === 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 <mario_limonciello@dell.com>
>
> * Remove extra declaration of sleep for mingw32.
> + * No realpath on mingw32. Instead use _fullpath.
>
> 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
>
>
> === 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 = xmalloc(PATH_MAX);
> + if (!_fullpath(ret, path, PATH_MAX))
> + return NULL;
> +#else
> #ifdef PATH_MAX
> ret = xmalloc (PATH_MAX);
> if (!realpath (path, ret))
> @@ -231,6 +236,7 @@
> #else
> ret = realpath (path, NULL);
> #endif
> +#endif /* __MINGW32__ */
> return ret;
> }
>
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
prev parent reply other threads:[~2011-09-29 8:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-21 20:49 [PATCH 2/3] Use _fullpath instead of realpath on mingw32 Mario Limonciello
2011-09-29 8:37 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E842E5D.1040106@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.