]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vbox_snapshot_conf: fix wrong use of 'xmlSaveFormatFileEnc'
authorPavel Hrdina <phrdina@redhat.com>
Wed, 18 Jun 2014 12:13:26 +0000 (14:13 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 18 Jun 2014 13:19:18 +0000 (15:19 +0200)
commit97af511b1a1cd49a7a5ffcdc3975a72239a7afdc
tree644b9e760812bd3e9752ec9010e8775456593637
parent37c3585b7b6049092848bfa9a1eb725e79a733c8
vbox_snapshot_conf: fix wrong use of 'xmlSaveFormatFileEnc'

The function 'xmlSaveFormatFileEnc' has a last option to set
if you want to format dumped xml with whitespaces or not.

Older libxml2, the one used in RHEL6, take this option as it is
but newer libxml2 check this option if it's true or not. This
small difference somehow makes things messy on RHEL6 and generated
xml had extra new line and extra whitespaces.

We should pass 1 instead if -1 because the -1 confuses the libxml2.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/vbox/vbox_snapshot_conf.c