diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-09-18 18:27:59 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-09-18 18:27:59 +0200 |
commit | 913afc39c9b4750e630c7f4ff3161a37602b006b (patch) | |
tree | 1c47ae94d6d912362a9a0129b4e893d1deb878d3 | |
parent | a5756259cf994e08b7bbac2a9591adab02f63d2b (diff) |
tftpd: apply sstallion's tftpd-rfc patch (from sources)
tftpd option handling is not RFC-compliant. This causes picky
clients (such as curl) to fail transfers.
-rw-r--r-- | sys/src/cmd/ip/tftpd.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/src/cmd/ip/tftpd.c b/sys/src/cmd/ip/tftpd.c index c39f2173d..9b543a29e 100644 --- a/sys/src/cmd/ip/tftpd.c +++ b/sys/src/cmd/ip/tftpd.c @@ -342,9 +342,6 @@ options(int fd, char *buf, int bufsz, char *file, ushort oper, char *p, int dlen if (bp + 3 >= ep) return -1; - *bp++ = '\0'; - *bp++ = '\0'; /* overkill */ - *bp++ = '\0'; if (write(fd, buf, bp - buf) < bp - buf) { syslog(dbg, flog, "tftpd network write error on oack to %s: %r", |