]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bootconfig: Fix to use correct quotes for value
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 16 Jun 2020 10:14:17 +0000 (19:14 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 17 Jun 2020 01:21:03 +0000 (21:21 -0400)
commit2362fc3af4001d6fc01f9d30049ca565092246ff
tree379e39c6d10fffaab56d64c80e98b8960c1f78c7
parentc81e9d0ac15bca791406865f5f464f48f548d982
tools/bootconfig: Fix to use correct quotes for value

Fix bootconfig tool to select double or single quotes
correctly according to the value.

If a bootconfig value includes a double quote character,
we must use single-quotes to quote that value.

Link: http://lkml.kernel.org/r/159230245697.65555.12444299015852932304.stgit@devnote2
Cc: stable@vger.kernel.org
Fixes: 81e719e5d9d9 ("tools: bootconfig: Add bootconfig command")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/bootconfig/main.c