]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xenconfig: fix spicepasswd handling
authorJim Fehlig <jfehlig@suse.com>
Thu, 23 Apr 2015 22:00:45 +0000 (16:00 -0600)
committerJim Fehlig <jfehlig@suse.com>
Mon, 18 May 2015 18:46:16 +0000 (12:46 -0600)
commita460295f4e3b1e21354bc8035eb761b9bc2bf3fa
treecf824c8ba6c59758328e0ccf5b572129d17424b5
parente21b1180a9ad36d09febf1beb4ad7a2ed8464521
xenconfig: fix spicepasswd handling

The logic related to spicedisable_ticketing and spicepasswd was
inverted.  As per man xl.cfg(5), 'spicedisable_ticketing = 1'
means no passwd is required.  On the other hand, a passwd is
required if 'spicedisable_ticketing = 0'.  Fix the logic and
produce and error if 'spicedisable_ticketing = 0' but spicepasswd
is not provided.  Also fix the spice cfg test file.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/xenconfig/xen_xl.c
tests/xlconfigdata/test-spice.cfg