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:
parent
a5756259cf
commit
913afc39c9
|
@ -342,9 +342,6 @@ options(int fd, char *buf, int bufsz, char *file, ushort oper, char *p, int dlen
|
||||||
|
|
||||||
if (bp + 3 >= ep)
|
if (bp + 3 >= ep)
|
||||||
return -1;
|
return -1;
|
||||||
*bp++ = '\0';
|
|
||||||
*bp++ = '\0'; /* overkill */
|
|
||||||
*bp++ = '\0';
|
|
||||||
|
|
||||||
if (write(fd, buf, bp - buf) < bp - buf) {
|
if (write(fd, buf, bp - buf) < bp - buf) {
|
||||||
syslog(dbg, flog, "tftpd network write error on oack to %s: %r",
|
syslog(dbg, flog, "tftpd network write error on oack to %s: %r",
|
||||||
|
|
Loading…
Reference in a new issue