diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-04-11 23:58:30 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-04-11 23:58:30 +0200 |
commit | 5fb37e15b68c5a523485edef7190a1fead96944a (patch) | |
tree | 882908ca258f98d0b6652a86a4aa408eac432182 | |
parent | a89bee73739384c02c9d2caa82a0f780e3c25345 (diff) | |
download | plan9front-5fb37e15b68c5a523485edef7190a1fead96944a.tar.xz |
ip/tftpd: add a syslog message about what error we return to the client on a NAK
-rw-r--r-- | sys/src/cmd/ip/tftpd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/cmd/ip/tftpd.c b/sys/src/cmd/ip/tftpd.c index 07ca3b37e..3744647c7 100644 --- a/sys/src/cmd/ip/tftpd.c +++ b/sys/src/cmd/ip/tftpd.c @@ -737,6 +737,8 @@ nak(int fd, int code, char *msg) 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 |