]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
authorRichard Laager <rlaager@wiktel.com>
Mon, 27 Feb 2012 16:40:38 +0000 (17:40 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 27 Feb 2012 16:40:38 +0000 (17:40 +0100)
unescape.

ChangeLog
util/getroot.c

index 40bf5cf9531214e1c1a09f10e33f8a23f4fe5772..b41e6fb3b506ff2e44e71f3a22a20af7ee42e814 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 9bec245371ea2923695a85d9772b05ccb9f751f7..113f2cfc95d93adc15ab0e7b4f587e85d91ac7ee 100644 (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