Apply by doing:
cd /usr/src
patch -p0 < 019_ftpd.patch
cd libexec/ftpd
make obj && make depend && make && make install
Index: libexec/ftpd/ftpd.c
===================================================================
RCS file: /cvs/src/libexec/ftpd/ftpd.c,v
retrieving revision 1.71
diff -u -r1.71 ftpd.c
--- libexec/ftpd/ftpd.c 2000/04/29 14:02:59 1.71
+++ libexec/ftpd/ftpd.c 2000/07/05 22:06:23
@@ -135,7 +135,7 @@
#include <varargs.h>
#endif
-static char version[] = "Version 6.4/OpenBSD";
+static char version[] = "Version 6.5/OpenBSD";
extern off_t restart_point;
extern char cbuf[];
@@ -1011,7 +1011,7 @@
"%s: anonymous/%.*s", remotehost,
(int)(sizeof(proctitle) - sizeof(remotehost) -
sizeof(": anonymous/")), passwd);
- setproctitle(proctitle);
+ setproctitle("%s", proctitle);
#endif /* HASSETPROCTITLE */
if (logging)
syslog(LOG_INFO, "ANONYMOUS FTP LOGIN FROM %s, %s",
@@ -1021,7 +1021,7 @@
#ifdef HASSETPROCTITLE
snprintf(proctitle, sizeof(proctitle),
"%s: %s", remotehost, pw->pw_name);
- setproctitle(proctitle);
+ setproctitle("%s", proctitle);
#endif /* HASSETPROCTITLE */
if (logging)
syslog(LOG_INFO, "FTP LOGIN FROM %s as %s",
@@ -2009,7 +2009,7 @@
remotehost[sizeof(remotehost)-1] = '\0';
#ifdef HASSETPROCTITLE
snprintf(proctitle, sizeof(proctitle), "%s: connected", remotehost);
- setproctitle(proctitle);
+ setproctitle("%s", proctitle);
#endif /* HASSETPROCTITLE */
if (logging)