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.
This commit is contained in:
cinap_lenrek 2012-09-18 18:27:59 +02:00
parent a5756259cf
commit 913afc39c9

View file

@ -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",