shithub: plan9front

Download patch

ref: 5fb37e15b68c5a523485edef7190a1fead96944a
parent: a89bee73739384c02c9d2caa82a0f780e3c25345
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Apr 11 17: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	Sun Apr 11 14:20:41 2021
+++ b/sys/src/cmd/ip/tftpd.c	Sun Apr 11 17:58:30 2021
@@ -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