krb5-1.4.3 build problems

Ken Raeburn raeburn at MIT.EDU
Thu Jun 15 20:07:21 EDT 2006


Please try this patch.

Index: ftpcmd.y
===================================================================
--- ftpcmd.y	(revision 18151)
+++ ftpcmd.y	(working copy)
@@ -971,7 +971,7 @@
  * 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;
@@ -1213,7 +1213,7 @@
 		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);
 			}
Index: ftpd_var.h
===================================================================
--- ftpd_var.h	(revision 18151)
+++ ftpd_var.h	(working copy)
@@ -89,7 +89,7 @@
 
 /* ftpcmd.y */
 void upper(char *);
-char *getline(char *, int, FILE *);
+char *ftpd_getline(char *, int, FILE *);
 #endif /* FTPD_VAR_H__ */
 
 /* popen.c */
Index: ftpd.c
===================================================================
--- ftpd.c	(revision 18151)
+++ ftpd.c	(working copy)
@@ -176,7 +176,6 @@
 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;
 
@@ -2139,7 +2138,7 @@
 	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);
 	}



More information about the Kerberos mailing list