mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virQEMUDriverConfigNew: Add slash to cfg->defaultTLSx509certdir for non-embedded driver
Commit 068efae5b1a9ef accidentally removed the slash. https://bugzilla.redhat.com/show_bug.cgi?id=1847234 Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
cf9e7726b3
commit
8f58a40035
@ -234,7 +234,7 @@ virQEMUDriverConfigPtr virQEMUDriverConfigNew(bool privileged,
|
|||||||
* directory doesn't exist (although we don't check if this exists).
|
* directory doesn't exist (although we don't check if this exists).
|
||||||
*/
|
*/
|
||||||
if (root == NULL) {
|
if (root == NULL) {
|
||||||
cfg->defaultTLSx509certdir = g_strdup(SYSCONFDIR "pki/qemu");
|
cfg->defaultTLSx509certdir = g_strdup(SYSCONFDIR "/pki/qemu");
|
||||||
} else {
|
} else {
|
||||||
cfg->defaultTLSx509certdir = g_strdup_printf("%s/etc/pki/qemu", root);
|
cfg->defaultTLSx509certdir = g_strdup_printf("%s/etc/pki/qemu", root);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user