From: Alain Spineux Date: Fri, 24 Jul 2020 12:36:06 +0000 (+0200) Subject: Fix #6557 Suppress message "Error: bsock.c:394 Wrote 4 bytes" after a BNET_TERMINATE X-Git-Tag: Release-11.3.2~1355 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5be79fdd30b002ac9823f218e56d588a019fd9ef;p=thirdparty%2Fbacula.git Fix #6557 Suppress message "Error: bsock.c:394 Wrote 4 bytes" after a BNET_TERMINATE - Quiet this type of message Error: bsock.c:394 Wrote 4 bytes ..... , but only 0 accepted. - Don't fix the issue that generate the message, just suppress the message. --- diff --git a/bacula/src/lib/bsock.c b/bacula/src/lib/bsock.c index b8a03f4ac7..84d9b1f88c 100644 --- a/bacula/src/lib/bsock.c +++ b/bacula/src/lib/bsock.c @@ -391,9 +391,11 @@ bool BSOCK::send(int aflags) m_host, m_port, this->bstrerror()); } } else { - Qmsg5(m_jcr, M_ERROR, 0, - _("Wrote %d bytes to %s:%s:%d, but only %d accepted.\n"), - pktsiz, m_who, m_host, m_port, rc); + if (!m_suppress_error_msgs) { + Qmsg5(m_jcr, M_ERROR, 0, + _("Wrote %d bytes to %s:%s:%d, but only %d accepted.\n"), + pktsiz, m_who, m_host, m_port, rc); + } } ok = false; }