1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-21 22:03:49 +03:00

conf: escape string for disk driver name attribute

Just like e92e5ba1, this attribute was missed.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
This commit is contained in:
Luyao Huang 2015-09-22 16:13:53 +08:00 committed by Martin Kletzander
parent d772a70faa
commit 363995b029

View File

@ -18917,8 +18917,7 @@ virDomainDiskDefFormat(virBufferPtr buf,
def->ioeventfd || def->event_idx || def->copy_on_read ||
def->discard || def->iothread) {
virBufferAddLit(buf, "<driver");
if (def->src->driverName)
virBufferAsprintf(buf, " name='%s'", def->src->driverName);
virBufferEscapeString(buf, " name='%s'", def->src->driverName);
if (def->src->format > 0)
virBufferAsprintf(buf, " type='%s'",
virStorageFileFormatTypeToString(def->src->format));