aboutsummaryrefslogtreecommitdiff
path: root/fs/cpio
diff options
context:
space:
mode:
authorGravatar Gaël PORTAY <gael.portay@savoirfairelinux.com>2018-02-21 16:02:16 -0500
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-02-26 20:49:40 +0100
commit4fa524144bd2019f98159f21802de08be7b5bea0 (patch)
tree83ddee908d0e37726e52aedd81804911e73ded3c /fs/cpio
parent1e7ee5a686dc74f18242a9c07623cf12065505c1 (diff)
downloadbuildroot-4fa524144bd2019f98159f21802de08be7b5bea0.tar.gz
buildroot-4fa524144bd2019f98159f21802de08be7b5bea0.tar.bz2
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 <gael.portay@savoirfairelinux.com> Reviewed-by: Adrian Perez de Castro <aperez@igalia.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'fs/cpio')
-rwxr-xr-xfs/cpio/init2
1 files changed, 1 insertions, 1 deletions
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 1>/dev/console
exec 2>/dev/console
-exec /sbin/init $*
+exec /sbin/init "$@"