Reported by Ubaidul Khan on kerberos@mit this date.
GNU libc includes a function getline with an incompatible prototype.
It hasn't caused problems for MIT on RHEL 4 (glibc 2.3.4), but
apparently FC5 has a newer set of headers in which it does.
* ftpcmd.y (getline): Renamed to ftpd_getline. Declarations and callers
changed.
* ftpd.c (getline): Remove duplicate declaration.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18153
dc483132-0cff-0310-8789-
dd5450dbe970
* getline - a hacked up version of fgets to ignore TELNET escape codes.
*/
char *
-getline(s, n, iop)
+ftpd_getline(s, n, iop)
char *s;
int n;
register FILE *iop;
case CMD:
(void) signal(SIGALRM, toolong);
(void) alarm((unsigned) timeout);
- if (getline(cbuf, sizeof(cbuf)-1, stdin) == NULL) {
+ if (ftpd_getline(cbuf, sizeof(cbuf)-1, stdin) == NULL) {
reply(221, "You could at least say goodbye.");
dologout(0);
}
extern char *home; /* pointer to home directory for glob */
extern FILE *ftpd_popen(), *fopen(), *freopen();
extern int ftpd_pclose(), fclose();
-extern char *getline();
extern char cbuf[];
extern off_t restart_point;
if (!transflag)
return;
cp = tmpline;
- if (getline(cp, sizeof(tmpline), stdin) == NULL) {
+ if (ftpd_getline(cp, sizeof(tmpline), stdin) == NULL) {
reply(221, "You could at least say goodbye.");
dologout(0);
}
/* ftpcmd.y */
void upper(char *);
-char *getline(char *, int, FILE *);
+char *ftpd_getline(char *, int, FILE *);
#endif /* FTPD_VAR_H__ */
/* popen.c */