diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-04-06 12:53:50 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-04-25 11:47:29 -0400 |
commit | a99cd1125189aaf31a7ee505d6208143482119eb (patch) | |
tree | a950082dce0d04b0448210f590d5bbb2c357cf55 /arch | |
parent | 66f75a5d028beaf67c931435fdc3e7823125730c (diff) | |
download | linux-a99cd1125189aaf31a7ee505d6208143482119eb.tar.gz linux-a99cd1125189aaf31a7ee505d6208143482119eb.tar.bz2 linux-a99cd1125189aaf31a7ee505d6208143482119eb.zip |
init: fix bug where environment vars can't be passed via boot args
Commit 026cee0086f had the side-effect of dropping the '=' from
the unknown boot arguments that are passed to init as environment
variables. This is because parse_args() puts a NUL in the string
where the '=' was when it passes the "param" and "val" pointers
to the parsing subfunctions. Previously, unknown_bootoption() was
the last parse_args() subfunction to run, and it carefully put back
the '=' character. Now the ignore_unknown_bootoption() is the last
one to run, and it wasn't doing the necessary repair, so the
envp params ended up with the embedded NUL and were no longer
seen as valid environment variables by init.
Tested-by: Woody Suwalski <terraluna977@gmail.com>
Acked-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions