From a414bd156535244fa3cf5608f028c08ada18433a Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Mon, 27 Feb 2012 17:40:38 +0100 Subject: [PATCH] * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing unescape. --- ChangeLog | 5 +++++ util/getroot.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 40bf5cf95..b41e6fb3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-02-27 Richard Laager + + * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing + unescape. + 2012-02-27 Vladimir Serbinenko Don't use insecure popen in getroot. diff --git a/util/getroot.c b/util/getroot.c index 9bec24537..113f2cfc9 100644 --- a/util/getroot.c +++ b/util/getroot.c @@ -542,6 +542,8 @@ grub_find_root_devices_from_mountinfo (const char *dir, char **relroot) if (sscanf (sep, "%s %s", entry.fstype, entry.device) != 2) continue; + unescape (entry.device); + /* Using the mount IDs, find out where this fits in the list of visible mount entries we've seen so far. There are three interesting cases. Firstly, it may be inserted at the end: this is