* util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing

unescape.
This commit is contained in:
Richard Laager 2012-02-27 17:40:38 +01:00 committed by Vladimir 'phcoder' Serbinenko
parent 30ac48c452
commit a414bd1565
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2012-02-27 Richard Laager <rlaager@wiktel.com>
* util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
unescape.
2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
Don't use insecure popen in getroot.

View file

@ -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