[libvirt PATCH] virIdentityEnsureSystemToken: Fix error message

Tim Wiederhake twiederh at redhat.com
Tue Jul 20 15:04:20 UTC 2021


This appears to be a copy-paste mistake from the check directly above.

Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
---
 src/util/viridentity.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/viridentity.c b/src/util/viridentity.c
index eb77f69e2e..c18326c8cb 100644
--- a/src/util/viridentity.c
+++ b/src/util/viridentity.c
@@ -284,7 +284,7 @@ virIdentityEnsureSystemToken(void)
     } else {
         if (virFileReadLimFD(fd, TOKEN_STRLEN, &token) < 0) {
             virReportSystemError(errno,
-                                 _("Failed to write system token '%s'"),
+                                 _("Failed to read system token '%s'"),
                                  tokenfile);
             return NULL;
         }
-- 
2.31.1




More information about the libvir-list mailing list