delimit path in strings using quotes.
* util/getroot.c (grub_guess_root_devices): Likewise.
(grub_make_system_path_relative_to_its_root): Likewise.
* util/grub-probe.c (probe): Likewise.
* util/ieee1275/ofpath.c (find_obppath): Likewise.
(xrealpath): Likewise.
+2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
+ delimit path in strings using quotes.
+ * util/getroot.c (grub_guess_root_devices): Likewise.
+ (grub_make_system_path_relative_to_its_root): Likewise.
+ * util/grub-probe.c (probe): Likewise.
+ * util/ieee1275/ofpath.c (find_obppath): Likewise.
+ (xrealpath): Likewise.
+
2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
Fix compilation with older compilers.
{
map[drive].device = xmalloc (PATH_MAX);
if (! realpath (p, map[drive].device))
- grub_util_error (_("failed to get canonical path of %s"), p);
+ grub_util_error (_("failed to get canonical path of `%s'"), p);
}
else
#endif
{
*cur = canonicalize_file_name (tmp);
if (*cur == NULL)
- grub_util_error (_("failed to get canonical path of %s"), tmp);
+ grub_util_error (_("failed to get canonical path of `%s'"), tmp);
free (tmp);
}
root = (strcmp (*cur, "/dev/root") == 0);
/* canonicalize. */
p = canonicalize_file_name (path);
if (p == NULL)
- grub_util_error (_("failed to get canonical path of %s"), path);
+ grub_util_error (_("failed to get canonical path of `%s'"), path);
/* For ZFS sub-pool filesystems, could be extended to others (btrfs?). */
#if !defined (__MINGW32__) && !defined (__CYGWIN__)
{
grub_path = canonicalize_file_name (path);
if (! grub_path)
- grub_util_error (_("failed to get canonical path of %s"), path);
+ grub_util_error (_("failed to get canonical path of `%s'"), path);
device_names = grub_guess_root_devices (grub_path);
free (grub_path);
}
kill_trailing_dir(sysfs_path);
if (!strcmp(sysfs_path, "/sys"))
{
- grub_util_info (_("'obppath' not found in parent dirs of %s,"
+ grub_util_info (_("`obppath' not found in parent dirs of `%s',"
" no IEEE1275 name discovery"),
sysfs_path_orig);
free (path);
out = realpath (in, NULL);
#endif
if (!out)
- grub_util_error (_("failed to get canonical path of %s"), in);
+ grub_util_error (_("failed to get canonical path of `%s'"), in);
return out;
}