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)
commit272da3279df191f028fd63d1683e5ecd56fcb13b
tree379e39c6d10fffaab56d64c80e98b8960c1f78c7
parent4e264ffd953463cd14c0720eaa9315ac052f5973
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: 950313ebf79c ("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