Zhangleiqiang 74bc9066bc qmp: fix handling of cmd with Equals in qmp-shell
qmp: fix handling of cmd with equal mark in qmp-shell

    qmp-shell splits the argument and value of input command
	by equal mark("="). But there are commands whose values
	include equal mark themselves, and the json built by
	qmp-shell will not correct. For example, when using NBD as
	the target of block-backup command, the input
	"block-backup target=nbd+unix:///drive0?socket=/tmp/nbd.sock"
	will fail, because the json built will be as follows:

    {
		"execute":"block-backup",
		"arguments":{"target":"nbd+unix:///drive0?socket"}
	}

    Fix it by joining the sections split by equal mark excluding the
	first section in __build_cmd function when the length of sections
	is larger than two.

Signed-off-by: zhangleiqiang <zhangleiqiang@huawei.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2013-05-15 08:58:43 -04:00
2013-05-03 12:04:49 -05:00
2013-04-18 13:50:53 +02:00
2013-05-12 13:25:55 +04:00
2012-12-19 08:29:06 +01:00
2013-05-03 13:53:46 +02:00
2013-05-08 15:28:49 +02:00
2013-05-12 13:25:55 +04:00
2013-05-06 17:22:48 +02:00
2013-05-03 13:58:09 +02:00
2013-04-08 18:13:10 +02:00
2013-05-08 20:23:20 +02:00
2013-04-08 18:13:10 +02:00
2013-05-03 13:58:09 +02:00
2013-05-14 08:53:18 -05:00
…
2013-04-26 20:18:24 +02:00
2013-04-18 13:50:53 +02:00
…
2013-02-21 16:17:31 -06:00
2013-04-08 18:13:10 +02:00
…
…
…
2013-04-29 12:16:36 -05:00
2013-02-21 16:17:31 -06:00
…
2013-05-03 12:04:40 -05:00
2013-05-03 13:05:49 +02:00
2013-03-11 13:32:03 +01:00
2013-02-22 21:21:10 +01:00
2013-05-03 12:04:57 -05:00
…
2013-05-01 13:06:07 +02:00
…
2013-05-03 12:04:40 -05:00
2013-05-08 15:54:47 -05:00
2013-04-08 18:13:10 +02:00
2013-04-08 18:13:10 +02:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
S
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme GPL-2.0
722 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 82.3%
C++ 6.9%
Python 3.5%
Dylan 2.7%
Shell 1.5%
Other 2.9%