]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
authorMario Limonciello <mario_limonciello@dell.com>
Thu, 29 Sep 2011 08:36:55 +0000 (10:36 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 29 Sep 2011 08:36:55 +0000 (10:36 +0200)
_fullpath.

ChangeLog
grub-core/kern/emu/misc.c

index 6e4aac7465033693b55552ca4e8a90b8399a7d1a..bc5508d32df21f3498ecc8a3bad4e0b3006e8216 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-29  Mario Limonciello <mario_limonciello@dell.com>
+
+       * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
+       _fullpath.
+
 2011-09-29  Mario Limonciello <mario_limonciello@dell.com>
 
        Remove extra declaration of sleep for mingw32.
index 737f5f1a9d2ec4f63338599d106d685597a5aa10..6f5ea9fb9aa50716b8bdfddccd95665948a06de2 100644 (file)
@@ -224,7 +224,11 @@ char *
 canonicalize_file_name (const char *path)
 {
   char *ret;
-#ifdef PATH_MAX
+#ifdef __MINGW32__
+  ret = xmalloc (PATH_MAX);
+  if (!_fullpath (ret, path, PATH_MAX))
+    return NULL;
+#elif defined (PATH_MAX)
   ret = xmalloc (PATH_MAX);
   if (!realpath (path, ret))
     return NULL;