Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965746AbcJ0OIp (ORCPT ); Thu, 27 Oct 2016 10:08:45 -0400 Received: from nbd.name ([46.4.11.11]:55688 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S942347AbcJ0OEu (ORCPT ); Thu, 27 Oct 2016 10:04:50 -0400 Subject: Re: [LEDE-DEV] [PATCH] initramfs: Escape colons in depfile To: Michal Marek , Florian Fainelli References: <1474619740-3725-1-git-send-email-mmarek@suse.com> Cc: openwrt-devel@lists.openwrt.org, lede-dev@lists.infradead.org, sam@ravnborg.org, linux-kernel@vger.kernel.org From: John Crispin Message-ID: Date: Thu, 27 Oct 2016 12:35:30 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1474619740-3725-1-git-send-email-mmarek@suse.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1004 Lines: 35 Hi, this seems to be a backport for the kernel tree. please resend it as a patch adding the actual patch that is being backported to the generic targets patch folder. this would need to be done for 3.18, 4.1 and 4.4 John On 23/09/2016 10:35, Michal Marek wrote: > Special characters are problematic in depfiles, but we can fix colons > easily. > > Reported-by: Florian Fainelli > Signed-off-by: Michal Marek > --- > scripts/gen_initramfs_list.sh | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh > index 17fa901418ae..0055b07b03b6 100755 > --- a/scripts/gen_initramfs_list.sh > +++ b/scripts/gen_initramfs_list.sh > @@ -97,7 +97,10 @@ print_mtime() { > } > > list_parse() { > - [ ! -L "$1" ] && echo "$1 \\" || : > + if [ -L "$1" ]; then > + return > + fi > + echo "$1" | sed 's/:/\\:/g; s/$/ \\/' > } > > # for each file print a line in following format >