[Buildroot] [PATCH 2/3] eudev: fix printf usage in init script

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Jan 30 21:58:28 UTC 2018


Hello,

On Tue, 30 Jan 2018 02:07:19 -0200, Carlos Santos wrote:
> Using a variable in a printf format string may lead to undesirable
> results if the variable contains format controls, so replace
> 
>     printf "foo $var bar"
> 
> by
> 
>     printf "foo %s bar" "$var"
> 
> Signed-off-by: Carlos Santos <casantos at datacom.ind.br>
> ---
>  package/eudev/S10udev | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list