a5bd9f6
From 423468a725a578a1829dac2278fd68da52843106 Mon Sep 17 00:00:00 2001
a5bd9f6
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
a5bd9f6
Date: Sun, 13 Jan 2013 22:45:16 +0100
a5bd9f6
Subject: [PATCH 105/364] 	* grub-core/kern/emu/hostdisk.c
a5bd9f6
 (read_device_map): Explicitly 	delimit path in strings using quotes. 	*
a5bd9f6
 util/getroot.c (grub_guess_root_devices): Likewise. 
a5bd9f6
 (grub_make_system_path_relative_to_its_root): Likewise. 	*
a5bd9f6
 util/grub-probe.c (probe): Likewise. 	* util/ieee1275/ofpath.c
a5bd9f6
 (find_obppath): Likewise. 	(xrealpath): Likewise.
a5bd9f6
a5bd9f6
---
a5bd9f6
 ChangeLog                     | 10 ++++++++++
a5bd9f6
 grub-core/kern/emu/hostdisk.c |  2 +-
a5bd9f6
 util/getroot.c                |  4 ++--
a5bd9f6
 util/grub-probe.c             |  2 +-
a5bd9f6
 util/ieee1275/ofpath.c        |  4 ++--
a5bd9f6
 5 files changed, 16 insertions(+), 6 deletions(-)
a5bd9f6
a5bd9f6
diff --git a/ChangeLog b/ChangeLog
a5bd9f6
index ea90383..1c0e633 100644
a5bd9f6
--- a/ChangeLog
a5bd9f6
+++ b/ChangeLog
a5bd9f6
@@ -1,5 +1,15 @@
a5bd9f6
 2013-01-13  Vladimir Serbinenko  <phcoder@gmail.com>
a5bd9f6
 
a5bd9f6
+	* grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
a5bd9f6
+	delimit path in strings using quotes.
a5bd9f6
+	* util/getroot.c (grub_guess_root_devices): Likewise.
a5bd9f6
+	(grub_make_system_path_relative_to_its_root): Likewise.
a5bd9f6
+	* util/grub-probe.c (probe): Likewise.
a5bd9f6
+	* util/ieee1275/ofpath.c (find_obppath): Likewise.
a5bd9f6
+	(xrealpath): Likewise.
a5bd9f6
+
a5bd9f6
+2013-01-13  Vladimir Serbinenko  <phcoder@gmail.com>
a5bd9f6
+
a5bd9f6
 	Fix compilation with older compilers.
a5bd9f6
 
a5bd9f6
 	* grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
a5bd9f6
diff --git a/grub-core/kern/emu/hostdisk.c b/grub-core/kern/emu/hostdisk.c
a5bd9f6
index b8c3766..ccd2417 100644
a5bd9f6
--- a/grub-core/kern/emu/hostdisk.c
a5bd9f6
+++ b/grub-core/kern/emu/hostdisk.c
a5bd9f6
@@ -1339,7 +1339,7 @@ read_device_map (const char *dev_map)
a5bd9f6
 	{
a5bd9f6
 	  map[drive].device = xmalloc (PATH_MAX);
a5bd9f6
 	  if (! realpath (p, map[drive].device))
a5bd9f6
-	    grub_util_error (_("failed to get canonical path of %s"), p);
a5bd9f6
+	    grub_util_error (_("failed to get canonical path of `%s'"), p);
a5bd9f6
 	}
a5bd9f6
       else
a5bd9f6
 #endif
a5bd9f6
diff --git a/util/getroot.c b/util/getroot.c
a5bd9f6
index 24ce6aa..3b5b0f6 100644
a5bd9f6
--- a/util/getroot.c
a5bd9f6
+++ b/util/getroot.c
a5bd9f6
@@ -1065,7 +1065,7 @@ grub_guess_root_devices (const char *dir)
a5bd9f6
 	    {
a5bd9f6
 	      *cur = canonicalize_file_name (tmp);
a5bd9f6
 	      if (*cur == NULL)
a5bd9f6
-		grub_util_error (_("failed to get canonical path of %s"), tmp);
a5bd9f6
+		grub_util_error (_("failed to get canonical path of `%s'"), tmp);
a5bd9f6
 	      free (tmp);
a5bd9f6
 	    }
a5bd9f6
 	  root = (strcmp (*cur, "/dev/root") == 0);
a5bd9f6
@@ -2778,7 +2778,7 @@ grub_make_system_path_relative_to_its_root (const char *path)
a5bd9f6
   /* canonicalize.  */
a5bd9f6
   p = canonicalize_file_name (path);
a5bd9f6
   if (p == NULL)
a5bd9f6
-    grub_util_error (_("failed to get canonical path of %s"), path);
a5bd9f6
+    grub_util_error (_("failed to get canonical path of `%s'"), path);
a5bd9f6
 
a5bd9f6
   /* For ZFS sub-pool filesystems, could be extended to others (btrfs?).  */
a5bd9f6
 #if !defined (__MINGW32__) && !defined (__CYGWIN__)
a5bd9f6
diff --git a/util/grub-probe.c b/util/grub-probe.c
a5bd9f6
index c2a0f62..b66cbea 100644
a5bd9f6
--- a/util/grub-probe.c
a5bd9f6
+++ b/util/grub-probe.c
a5bd9f6
@@ -327,7 +327,7 @@ probe (const char *path, char **device_names, char delim)
a5bd9f6
     {
a5bd9f6
       grub_path = canonicalize_file_name (path);
a5bd9f6
       if (! grub_path)
a5bd9f6
-	grub_util_error (_("failed to get canonical path of %s"), path);
a5bd9f6
+	grub_util_error (_("failed to get canonical path of `%s'"), path);
a5bd9f6
       device_names = grub_guess_root_devices (grub_path);
a5bd9f6
       free (grub_path);
a5bd9f6
     }
a5bd9f6
diff --git a/util/ieee1275/ofpath.c b/util/ieee1275/ofpath.c
a5bd9f6
index 9de9ffc..f0a34b5 100644
a5bd9f6
--- a/util/ieee1275/ofpath.c
a5bd9f6
+++ b/util/ieee1275/ofpath.c
a5bd9f6
@@ -131,7 +131,7 @@ find_obppath (const char *sysfs_path_orig)
a5bd9f6
 	  kill_trailing_dir(sysfs_path);
a5bd9f6
 	  if (!strcmp(sysfs_path, "/sys"))
a5bd9f6
 	    {
a5bd9f6
-	      grub_util_info (_("'obppath' not found in parent dirs of %s,"
a5bd9f6
+	      grub_util_info (_("`obppath' not found in parent dirs of `%s',"
a5bd9f6
 				" no IEEE1275 name discovery"),
a5bd9f6
 			      sysfs_path_orig);
a5bd9f6
 	      free (path);
a5bd9f6
@@ -164,7 +164,7 @@ xrealpath (const char *in)
a5bd9f6
   out = realpath (in, NULL);
a5bd9f6
 #endif
a5bd9f6
   if (!out)
a5bd9f6
-    grub_util_error (_("failed to get canonical path of %s"), in);
a5bd9f6
+    grub_util_error (_("failed to get canonical path of `%s'"), in);
a5bd9f6
   return out;
a5bd9f6
 }
a5bd9f6
 
a5bd9f6
-- 
a5bd9f6
1.8.1.4
a5bd9f6