summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlum <lum@cvs.openbsd.org>2010-08-27 12:00:22 +0000
committerlum <lum@cvs.openbsd.org>2010-08-27 12:00:22 +0000
commit9a3e5ab93d548108fc54e11c8163930656b35698 (patch)
treee36f02d35a3fc973e766576891817b6aaa8ff59b
parent32ab9947ec48790be06f7cb0be6364c3f3717a2d (diff)
In revision 1.14 of ftpd.c the ident variable was removed from its only meaningful usage when a snprintf call was removed, rendering ident useless. Time to remove remaining code.
ok tobias@
-rw-r--r--libexec/ftpd/ftpd.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index ec106102054..61fb5a4f277 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftpd.c,v 1.191 2010/08/01 16:53:57 tobias Exp $ */
+/* $OpenBSD: ftpd.c,v 1.192 2010/08/27 12:00:21 lum Exp $ */
/* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */
/*
@@ -173,9 +173,6 @@ int allow_severity = LOG_INFO;
int deny_severity = LOG_NOTICE;
#endif /* TCPWRAPPERS */
-char *ident = NULL;
-
-
int epsvall = 0;
/*
@@ -1109,11 +1106,6 @@ pass(char *passwd)
if (motd != NULL)
free(motd);
if (guest) {
- if (ident != NULL)
- free(ident);
- ident = strdup(passwd);
- if (ident == NULL)
- fatal("Ran out of memory.");
reply(230, "Guest login ok, access restrictions apply.");
#ifdef HASSETPROCTITLE
snprintf(proctitle, sizeof(proctitle),