]> git.baikalelectronics.ru Git - kernel.git/commit
params: handle quotes properly for values not of form foo="bar".
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 15 Apr 2015 03:53:48 +0000 (13:23 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 15 Apr 2015 04:01:23 +0000 (13:31 +0930)
commit98139b7900bc4bdabdfd963dbf87d2bf53d2c5b8
tree7c41d3c24c1144146a8da03b04016235347fdb24
parent5125da6dc3bc25324f4962d6ba87f3f1e9e32b76
params: handle quotes properly for values not of form foo="bar".

When starting kernel with arguments like:
  init=/bin/sh -c "echo arguments"
the trailing double quote is not removed which results in following command
being executed:
  /bin/sh -c 'echo arguments"'

Reported-by: Arthur Gautier <baloo@gandi.net>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/params.c