grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 4/4] Allow protocol to be separated from host with a semicolo


From: Andrei Borzenkov
Subject: Re: [PATCH 4/4] Allow protocol to be separated from host with a semicolon
Date: Tue, 24 Jan 2017 07:02:38 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

24.01.2017 03:36, Matthew Garrett пишет:
> Some DHCP servers (such as dnsmasq) tokenise parameters with commas, making
> it impossible to pass boot files with commas in them. Allow using a

grub_net_open() operates on devices, not files. Please give more details
about your problem.

> semicolon to separate the protocol from host if a comma wasn't found.
> ---
>  grub-core/net/net.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/grub-core/net/net.c b/grub-core/net/net.c
> index 585f4f7..efacb30 100644
> --- a/grub-core/net/net.c
> +++ b/grub-core/net/net.c
> @@ -1280,6 +1280,10 @@ grub_net_open_real (const char *name)
>        const char *comma;
>        char *colon;
>        comma = grub_strchr (name, ',');
> +      if (!comma)
> +     {
> +       comma = grub_strchr (name, ';');
> +     }
>        colon = grub_strchr (name, ':');
>        if (colon)
>       {
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]