net: translate pxe prefix to tftp when checking for self-load
Commit ba218c1
missed legacy pxe and pxe: prefixes which are
translated to tftp, so comparison failed.
This commit is contained in:
parent
e045af148a
commit
b524fa27f5
1 changed files with 9 additions and 0 deletions
|
@ -1346,6 +1346,15 @@ grub_net_open_real (const char *name)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (grub_strncmp (prefdev, "pxe", sizeof ("pxe") - 1) == 0 &&
|
||||||
|
(!prefdev[sizeof ("pxe") - 1] || (prefdev[sizeof("pxe") - 1] == ':')))
|
||||||
|
{
|
||||||
|
grub_free (prefdev);
|
||||||
|
prefdev = grub_strdup ("tftp");
|
||||||
|
if (!prefdev)
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
comma = grub_strchr (prefdev, ',');
|
comma = grub_strchr (prefdev, ',');
|
||||||
if (comma)
|
if (comma)
|
||||||
*comma = '\0';
|
*comma = '\0';
|
||||||
|
|
Loading…
Reference in a new issue