diff options
author | Gaël PORTAY <gael.portay@savoirfairelinux.com> | 2018-02-21 16:02:16 -0500 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2018-02-26 20:49:40 +0100 |
commit | 4fa524144bd2019f98159f21802de08be7b5bea0 (patch) | |
tree | 83ddee908d0e37726e52aedd81804911e73ded3c | |
parent | 1e7ee5a686dc74f18242a9c07623cf12065505c1 (diff) | |
download | buildroot-4fa524144bd2019f98159f21802de08be7b5bea0.tar.gz buildroot-4fa524144bd2019f98159f21802de08be7b5bea0.zip |
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>
-rwxr-xr-x | fs/cpio/init | 2 |
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 "$@" |