Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1ifkY6-0001oI-12 for mharc-grub-devel@gnu.org; Fri, 13 Dec 2019 08:00:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44646) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifkY2-0001kc-VW for grub-devel@gnu.org; Fri, 13 Dec 2019 08:00:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifkY1-0005DI-LM for grub-devel@gnu.org; Fri, 13 Dec 2019 07:59:58 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:34365 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ifkY1-0005CC-Fl for grub-devel@gnu.org; Fri, 13 Dec 2019 07:59:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576241996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gt8hcO2KAwZKyTWSNaD7f83G6O7oDNZ8DNKGg5lgktQ=; b=WbvJfSlv25T5Daldw2teXKTVV8DYBGF8PHQwbClIRFO6V8zHdZFoD67I11N4D3KxIZxqrt PxUrL1G/xS/71onjslGlyBFiF8/X/c+9GAK1ndSoNHZQwgq3AS8StLcotMAGYdADofOphX yTNKYB3L+9zax/t20mOxNzIJJsdn4yQ= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-101-KbiIP9DyNTaY0__v1ZuVyA-1; Fri, 13 Dec 2019 07:59:50 -0500 Received: by mail-wr1-f72.google.com with SMTP id c17so2529843wrp.10 for ; Fri, 13 Dec 2019 04:59:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gt8hcO2KAwZKyTWSNaD7f83G6O7oDNZ8DNKGg5lgktQ=; b=D4CxUXoVz1LXtXGDoxtzaeKEa7FbkcKMbiWt5FJSr3il2/zu8yIEYcc94IOtLyA2q7 Wm7OBFy8Kvdi+bE11w+vbxJMzJzDEr34AKPrPgDlPaqAASaUbnfFr7IlIb0LRcTK2F+s 4EsSKP7+ejNF6M5qfRC/mU8NxBohSrBcuRzvOuytGtROyr/hIdy+LIHSw4dop6bqYFEy bue6KTMY3TQAEhpiqceCO1tnpzU0P7KDThqU/5GJlwDBjPJCj5LlBhxvje2w2Yqz1EL8 TmyRbKMnxgEcAfKDwi5zh4Oa526yNRJDE5b/TQk8bsjsstGDe0dvt2YRxOEQKSxrXGBv /ICg== X-Gm-Message-State: APjAAAWB4XyiuoXGOEYpzXPSFTuL8QkE3cyJRgPLHSaXPsjtYuu/LqvC 8BLJnUngnUelyfIUXJvetXjAvmtwU0XJUPdSFWo2GUfBgSG41RiJ8ciqNBUZxaNirjbtczw96UL akvO3yPFkn7A= X-Received: by 2002:a1c:9a44:: with SMTP id c65mr3948226wme.30.1576241989385; Fri, 13 Dec 2019 04:59:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxE+YiIfxAaXZWf1tQuLr5dAZ9peQN772o51ajr0neTDCn2hTw3OsHTCLP7NQFx6C+1OUwLuA== X-Received: by 2002:a1c:9a44:: with SMTP id c65mr3948191wme.30.1576241989171; Fri, 13 Dec 2019 04:59:49 -0800 (PST) Received: from [192.168.1.14] ([90.168.169.92]) by smtp.gmail.com with ESMTPSA id q8sm8089683wmq.3.2019.12.13.04.59.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Dec 2019 04:59:48 -0800 (PST) Subject: Re: [PATCH] tftp: Normalize slashes in tftp paths To: Daniel Kiper Cc: grub-devel@gnu.org, Lenny Szubowicz , Mark Salter References: <20191031103339.2682-1-javierm@redhat.com> <20191129155318.ipk5g4hbhcr32fqp@tomti.i.net-space.pl> From: Javier Martinez Canillas Message-ID: <008f58fb-bcb0-77aa-2dea-daae431cab33@redhat.com> 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 MIME-Version: 1.0 In-Reply-To: <20191129155318.ipk5g4hbhcr32fqp@tomti.i.net-space.pl> Content-Language: en-US X-MC-Unique: KbiIP9DyNTaY0__v1ZuVyA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.120 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Dec 2019 13:00:00 -0000 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 >> >> 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 >> Signed-off-by: Mark Salter >> Signed-off-by: Javier Martinez Canillas > > Reviewed-by: Daniel Kiper > > 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