]> xenbits.xensource.com Git - libvirt.git/commitdiff
tools: fix paths in PKI validation error messages
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 12 Jun 2024 10:54:26 +0000 (11:54 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 13 Jun 2024 09:22:21 +0000 (10:22 +0100)
A couple of paths passed in the error messages, didnt match the paths
that were actually being tested.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tools/virt-pki-validate.c

index 656f29fdc5e661e7dd1f62319a78e6a30c4a54e4..e693ffaed6c30959aa5351af097d3fc0feae370d 100644 (file)
@@ -184,7 +184,7 @@ virPKIValidateIdentity(bool isServer, bool system, const char *path)
                             _("Checking system cert dir access"),
                             0, 0, 0755,
                             _("The system cert dir %1$s must be accessible to all users. As root, run: chown root.root; chmod 0755 %2$s"),
-                            LIBVIRT_PKI_DIR, LIBVIRT_PKI_DIR);
+                            LIBVIRT_CERT_DIR, LIBVIRT_CERT_DIR);
 
         FILE_REQUIRE_EXISTS(scope,
                             LIBVIRT_KEY_DIR,
@@ -197,7 +197,7 @@ virPKIValidateIdentity(bool isServer, bool system, const char *path)
                             _("Checking system key dir access"),
                             0, 0, 0755,
                             _("The system key dir %1$s must be accessible to all users. As root, run: chown root.root; chmod 0755 %2$s"),
-                            LIBVIRT_KEY_DIR, LIBVIRT_PKI_DIR);
+                            LIBVIRT_KEY_DIR, LIBVIRT_KEY_DIR);
     } else if (path) {
         virNetTLSConfigCustomTrust(path,
                                    &cacert,