ref: bd6a6432c16a4bad3ff0edfdf2d985bb91142d82
parent: f1a6d9a866e6e761a2b6373a17612e6831835f88
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Apr 11 19:58:30 EDT 2021
ip/tftpd: add a syslog message about what error we return to the client on a NAK
--- a/sys/src/cmd/ip/tftpd.c
+++ b/sys/src/cmd/ip/tftpd.c
@@ -737,6 +737,8 @@
buf[n-1] = 0;
if(write(fd, buf, n) != n)
sysfatal("write nak: %r");+
+ syslog(dbg, flog, "tftpd %d sent NAK '%s' to %s", pid, msg, raddr);
}
void
--
⑨