grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/3] Use _fullpath instead of realpath on mingw32


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: [PATCH 2/3] Use _fullpath instead of realpath on mingw32
Date: Thu, 29 Sep 2011 10:37:49 +0200
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

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 <address@hidden>
>
>         * Remove extra declaration of sleep for mingw32.
> +       * No realpath on mingw32.  Instead use _fullpath.
>
>  2011-09-17  Grégoire Sutre <address@hidden>
>
>
> === 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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]