Files
ports/mail/popular/files/patch-src_io.c
T
Li-Wen Hsu 5fe304a328 mail/popular: Prepare for textproc/p5-XML-Parser update
Also:
- Bump PORTREVISION
- Skip build of man pages, which are already present in the distribution
- Add LICENSE
- Add USE_LDCONFIG
- Regenerate patches to follow the standard
- Pass maintainership to the submitter

PR:		248725
Submitted by:	Sergei Vyshenski <svysh.fbsd@gmail.com>
2020-08-19 13:17:38 +00:00

13 lines
505 B
C

--- src/io.c.orig 2004-08-21 10:19:29 UTC
+++ src/io.c
@@ -307,7 +307,8 @@ io_sysread(struct io_ctx *ioc, char *buf, size_t count
* A null byte was encountered in input from a network socket. This
* can never happen in a normal POP3 connection. */
xlog_printf(xlog_adm, 0x0035, "null_byte_in_input ctx='%s' len=%d data='%s'", ioc->io_desc, len, buf);
- errno = EPROTO;
+ /* Uh oh, nice to overload socket errcos for application level signalization */
+ errno = EPIPE;
return -1;
}
}