From 4fa524144bd2019f98159f21802de08be7b5bea0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ga=C3=ABl=20PORTAY?= Date: Wed, 21 Feb 2018 16:02:16 -0500 Subject: [PATCH] fs/cpio/init: preserve arguments MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- fs/cpio/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "$@" -- 2.30.2