Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1510198 > unrolled thread

Re: [LEDE-DEV] [PATCH] initramfs: Escape colons in depfile

Started byJohn Crispin <john@phrozen.org>
First post2016-10-27 16:10 +0200
Last post2016-10-27 16:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [LEDE-DEV] [PATCH] initramfs: Escape colons in depfile John Crispin <john@phrozen.org> - 2016-10-27 16:10 +0200

#1510198 — Re: [LEDE-DEV] [PATCH] initramfs: Escape colons in depfile

FromJohn Crispin <john@phrozen.org>
Date2016-10-27 16:10 +0200
SubjectRe: [LEDE-DEV] [PATCH] initramfs: Escape colons in depfile
Message-ID<swTxw-2VB-9@gated-at.bofh.it>
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 <f.fainelli@gmail.com>
> Signed-off-by: Michal Marek <mmarek@suse.com>
> ---
>  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
> 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web