]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
smartcard: spell ccid-card-emulated qemu property correctly
authorEric Blake <eblake@redhat.com>
Mon, 1 Apr 2013 22:54:31 +0000 (16:54 -0600)
committerCole Robinson <crobinso@redhat.com>
Tue, 11 Jun 2013 20:51:18 +0000 (16:51 -0400)
Reported by Anthony Messina in
https://bugzilla.redhat.com/show_bug.cgi?id=904692
Present since introduction of smartcard support in commit f5fd9baa

* src/qemu/qemu_command.c (qemuBuildCommandLine): Match qemu spelling.
* tests/qemuxml2argvdata/qemuxml2argv-smartcard-host-certificates.args:
Fix broken test.
(cherry picked from commit 6f7e4ea359323f9bc413dfb738a5c544d4f9c4f8)

src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-smartcard-host-certificates.args

index af1ff3ea136d279d8d77b62b7c352ee5427099e2..d45b76431f2e9bfe4232896a685d9e8e189838b9 100644 (file)
@@ -5648,7 +5648,7 @@ qemuBuildCommandLine(virConnectPtr conn,
             } else {
                 database = VIR_DOMAIN_SMARTCARD_DEFAULT_DATABASE;
             }
-            virBufferAsprintf(&opt, ",database=%s", database);
+            virBufferAsprintf(&opt, ",db=%s", database);
             break;
 
         case VIR_DOMAIN_SMARTCARD_TYPE_PASSTHROUGH:
index 8b4be3a6c0d120f6a9472b110ea89523dc4b9eac..b7b14c700e73340728b5167ecfc55114b5aa1326 100644 (file)
@@ -4,5 +4,5 @@ socket,id=charmonitor,path=/tmp/test-monitor,server,nowait -mon \
 chardev=charmonitor,id=monitor,mode=readline -no-acpi -boot c -device \
 usb-ccid,id=ccid0 -usb -device \
 ccid-card-emulated,backend=certificates,cert1=cert1,cert2=cert2,cert3=cert3\
-,database=/etc/pki/nssdb,id=smartcard0,bus=ccid0.0 -device \
+,db=/etc/pki/nssdb,id=smartcard0,bus=ccid0.0 -device \
 virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3