render / rpms / libvirt

Forked from rpms/libvirt 7 months ago
Clone
acda74
From f26e30ecb3d0e25d5cf648755e2b4e1db0476b52 Mon Sep 17 00:00:00 2001
acda74
Message-Id: <f26e30ecb3d0e25d5cf648755e2b4e1db0476b52@dist-git>
acda74
From: Martin Kletzander <mkletzan@redhat.com>
acda74
Date: Tue, 24 Jan 2023 13:45:09 +0100
acda74
Subject: [PATCH] rpc: Fix error message in virNetServerSetClientLimits
acda74
MIME-Version: 1.0
acda74
Content-Type: text/plain; charset=UTF-8
acda74
Content-Transfer-Encoding: 8bit
acda74
acda74
Commit f007940cb25a tried to change the error message so that it is unified
acda74
later in 35afa1d2d6c1, but various rewrites missed this particular error message
acda74
which does not make sense.  Fix it so that it is the same as the other two
acda74
messages checking the same thing in this file.
acda74
acda74
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2033879
acda74
acda74
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
acda74
Reviewed-by: Ján Tomko <jtomko@redhat.com>
acda74
(cherry picked from commit 1e2605c934b80c3e9c30e929834d38fee86f184e)
acda74
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
acda74
---
acda74
 src/rpc/virnetserver.c | 5 ++---
acda74
 1 file changed, 2 insertions(+), 3 deletions(-)
acda74
acda74
diff --git a/src/rpc/virnetserver.c b/src/rpc/virnetserver.c
acda74
index bf0fda04ee..e97dfe8136 100644
acda74
--- a/src/rpc/virnetserver.c
acda74
+++ b/src/rpc/virnetserver.c
acda74
@@ -1127,9 +1127,8 @@ virNetServerSetClientLimits(virNetServer *srv,
acda74
 
acda74
     if (max < max_unauth) {
acda74
         virReportError(VIR_ERR_INVALID_ARG, "%s",
acda74
-                       _("The overall maximum number of clients waiting "
acda74
-                         "for authentication must not be less than the overall "
acda74
-                         "maximum number of clients"));
acda74
+                       _("The overall maximum number of clients must not be less "
acda74
+                         "than the number of clients waiting for authentication"));
acda74
         return -1;
acda74
     }
acda74
 
acda74
-- 
acda74
2.39.1
acda74