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>
This commit is contained in:
parent
1e7ee5a686
commit
4fa524144b
@ -4,4 +4,4 @@
|
|||||||
exec 0</dev/console
|
exec 0</dev/console
|
||||||
exec 1>/dev/console
|
exec 1>/dev/console
|
||||||
exec 2>/dev/console
|
exec 2>/dev/console
|
||||||
exec /sbin/init $*
|
exec /sbin/init "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user