ports/ftp/bsdftpd-ssl/files/patch-ftpd_ftpcmd.y
Baptiste Daroussin b132dd99a0 Fix collision with getline(3)
While here regen patches
2016-08-01 06:26:30 +00:00

20 lines
613 B
Text

--- ftpd/ftpcmd.y.orig 2004-12-19 18:44:42 UTC
+++ ftpd/ftpcmd.y
@@ -1394,7 +1394,7 @@ lookup(struct tab *p, char *cmd)
* getline - a hacked up version of fgets to ignore TELNET escape codes.
*/
char *
-getline(char *s, int n, FILE *iop)
+get_line(char *s, int n, FILE *iop)
{
int c;
register char *cs;
@@ -1545,7 +1545,7 @@ yylex(void)
case CMD:
(void) signal(SIGALRM, toolong);
(void) alarm(timeout);
- if (getline(cbuf, sizeof(cbuf)-1, stdin) == NULL) {
+ if (get_line(cbuf, sizeof(cbuf)-1, stdin) == NULL) {
reply(221, "You could at least say goodbye.");
dologout(0);
}