* util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
name.
This commit is contained in:
parent
a626fdd76a
commit
bcb288ed17
2 changed files with 17 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
|
||||||
|
name.
|
||||||
|
|
||||||
2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
|
* grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
|
||||||
|
|
|
@ -380,8 +380,18 @@ find_root_devices_from_poolname (char *poolname)
|
||||||
st++;
|
st++;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
if (!strcmp (name, poolname))
|
{
|
||||||
|
char *ptr = line;
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
|
if (strncmp (ptr, poolname, strlen (poolname)) == 0
|
||||||
|
&& grub_isspace(ptr[strlen (poolname)]))
|
||||||
st++;
|
st++;
|
||||||
|
if (!grub_isspace (*ptr))
|
||||||
|
break;
|
||||||
|
ptr++;
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if (strcmp (name, "mirror") && !sscanf (name, "mirror-%u", &dummy)
|
if (strcmp (name, "mirror") && !sscanf (name, "mirror-%u", &dummy)
|
||||||
|
|
Loading…
Add table
Reference in a new issue