Add --quiet-tftp.

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

No files matched your search

+2 -1
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;
}