From: Daniel P. Berrange Date: Fri, 30 Nov 2012 15:05:48 +0000 (+0000) Subject: Quote client identity in SASL whitelist log message X-Git-Tag: v0.10.2.2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a0bb98d1ec5e9e6917e1abc38a6e1ad590e0a8c;p=thirdparty%2Flibvirt.git Quote client identity in SASL whitelist log message When seeing a message virNetSASLContextCheckIdentity:146 : SASL client admin not allowed in whitelist it isn't immediately obvious that 'admin' is the identity being checked. Quote the string to make it more obvious (cherry picked from commit 07da0a6b54057f48238e35f1756d137c10e0bef5) --- diff --git a/src/rpc/virnetsaslcontext.c b/src/rpc/virnetsaslcontext.c index e65ff6fa82..8434f3c411 100644 --- a/src/rpc/virnetsaslcontext.c +++ b/src/rpc/virnetsaslcontext.c @@ -163,7 +163,7 @@ int virNetSASLContextCheckIdentity(virNetSASLContextPtr ctxt, } /* Denied */ - VIR_ERROR(_("SASL client %s not allowed in whitelist"), identity); + VIR_ERROR(_("SASL client identity '%s' not allowed in whitelist"), identity); /* This is the most common error: make it informative. */ virReportError(VIR_ERR_SYSTEM_ERROR, "%s",