grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] tftp: Normalize slashes in tftp paths


From: Javier Martinez Canillas
Subject: Re: [PATCH] tftp: Normalize slashes in tftp paths
Date: Fri, 13 Dec 2019 13:59:47 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

Hello Daniel,

On 11/29/19 4:53 PM, Daniel Kiper wrote:
> On Thu, Oct 31, 2019 at 11:33:39AM +0100, Javier Martinez Canillas wrote:
>> From: Lenny Szubowicz <address@hidden>
>>
>> Some tftp servers do not handle multiple consecutive slashes correctly;
>> this patch avoids sending tftp requests with non-normalized paths.
>>
>> Signed-off-by: Lenny Szubowicz <address@hidden>
>> Signed-off-by: Mark Salter <address@hidden>
>> Signed-off-by: Javier Martinez Canillas <address@hidden>
> 
> Reviewed-by: Daniel Kiper <address@hidden>
> 
> Except some nitpicks which I fix before committing...
>

Thanks a lot for fixing the issues and taking the patch.
 
>> ---
>>
>>  grub-core/net/tftp.c | 28 +++++++++++++++++++++++++---
>>  1 file changed, 25 insertions(+), 3 deletions(-)
>>
>> diff --git grub-core/net/tftp.c grub-core/net/tftp.c
>> index 7d90bf66e76..6dbb9cdbb7a 100644
>> --- grub-core/net/tftp.c
>> +++ grub-core/net/tftp.c
>> @@ -300,6 +300,25 @@ destroy_pq (tftp_data_t data)
>>    grub_priority_queue_destroy (data->pq);
>>  }
>>
>> +/* Create a normalized copy of the filename.
>> +   Compress any string of consecutive forward slashes to a single forward
>> +   slash. */
> 
> https://www.gnu.org/software/grub/manual/grub-dev/grub-dev.html#Multi_002dLine-Comments
>

Sorry, I'll make sure that comments are correct the next time.

Best regards,
-- 
Javier Martinez Canillas
Software Engineer - Desktop Hardware Enablement
Red Hat




reply via email to

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