提交 999a873d 编写于 作者: P Pavel Hrdina 提交者: Cole Robinson

domain-conf: escape string for socket attribute

Commit d091518b tried to escape all strings in produced XML, but missed
this one.
Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
(cherry picked from commit e92e5ba1)
上级 d7eb40d7
...@@ -20800,9 +20800,7 @@ virDomainGraphicsDefFormat(virBufferPtr buf, ...@@ -20800,9 +20800,7 @@ virDomainGraphicsDefFormat(virBufferPtr buf,
switch (def->type) { switch (def->type) {
case VIR_DOMAIN_GRAPHICS_TYPE_VNC: case VIR_DOMAIN_GRAPHICS_TYPE_VNC:
if (def->data.vnc.socket) { if (def->data.vnc.socket) {
if (def->data.vnc.socket) virBufferEscapeString(buf, " socket='%s'", def->data.vnc.socket);
virBufferAsprintf(buf, " socket='%s'",
def->data.vnc.socket);
} else { } else {
if (def->data.vnc.port && if (def->data.vnc.port &&
(!def->data.vnc.autoport || !(flags & VIR_DOMAIN_DEF_FORMAT_INACTIVE))) (!def->data.vnc.autoport || !(flags & VIR_DOMAIN_DEF_FORMAT_INACTIVE)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册