mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-20 11:35:19 +00:00
domain-conf: escape string for socket attribute
Commit d091518b tried to escape all strings in produced XML, but missed this one. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
46cf0cefa0
commit
e92e5ba128
@ -21118,9 +21118,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)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user