From: Gaël PORTAY Date: Wed, 21 Feb 2018 21:02:16 +0000 (-0500) Subject: fs/cpio/init: preserve arguments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4fa524144bd2019f98159f21802de08be7b5bea0;p=buildroot.git fs/cpio/init: preserve arguments Use "$@" instead of $* to preserve arguments containing spaces. The shell expands "$@" as "$1" "$2" "$3"... while it expands $@ as $1 $2 $3. With the second form, we loses spaces in positional parameters. Signed-off-by: Gaël PORTAY Reviewed-by: Adrian Perez de Castro Signed-off-by: Peter Korsgaard --- diff --git a/fs/cpio/init b/fs/cpio/init index a275482177..dbe09ac68e 100755 --- a/fs/cpio/init +++ b/fs/cpio/init @@ -4,4 +4,4 @@ exec 0/dev/console exec 2>/dev/console -exec /sbin/init $* +exec /sbin/init "$@"