Add --quiet-tftp.

This commit is contained in:
Kevin Darbyshire-Bryant
2021-07-09 22:48:49 +01:00
committed by Simon Kelley
parent e7ccd95c04
commit 767d9cbd96
4 changed files with 11 additions and 5 deletions

View File

@@ -761,7 +761,8 @@ static ssize_t tftp_err(int err, char *packet, char *message, char *file)
len = snprintf(mess->message, MAXMESSAGE, message, file, errstr);
ret += (len < MAXMESSAGE) ? len + 1 : MAXMESSAGE; /* include terminating zero */
my_syslog(MS_TFTP | LOG_ERR, "%s", mess->message);
if (err != ERR_FNF || !option_bool(OPT_QUIET_TFTP))
my_syslog(MS_TFTP | LOG_ERR, "%s", mess->message);
return ret;
}