summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2013-11-07 00:36:39 +0000
committersjg <sjg@FreeBSD.org>2013-11-07 00:36:39 +0000
commiteba650c709ac24cb2501807ef5664f6d910b67c4 (patch)
tree50507d3aa27be222cb9c0a088a088060f19f104c /contrib
parentdf7d7bf4a537e70fa00ea7331f3d9672df0f3153 (diff)
downloadFreeBSD-src-eba650c709ac24cb2501807ef5664f6d910b67c4.zip
FreeBSD-src-eba650c709ac24cb2501807ef5664f6d910b67c4.tar.gz
Propagate ancient fix from Junos.
Use of -h is not supposed to depend on AUTHENTICATION being defined. Reviewed by: markm
Diffstat (limited to 'contrib')
-rw-r--r--contrib/telnet/telnetd/sys_term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/telnet/telnetd/sys_term.c b/contrib/telnet/telnetd/sys_term.c
index 6d06b28..5a9421b 100644
--- a/contrib/telnet/telnetd/sys_term.c
+++ b/contrib/telnet/telnetd/sys_term.c
@@ -1052,11 +1052,11 @@ start_login(char *host undef1, int autologin undef1, char *name undef1)
*/
if ((auth_level < 0) || (autologin != AUTH_VALID))
# endif
+#endif /* AUTHENTICATION */
{
argv = addarg(argv, "-h");
argv = addarg(argv, host);
}
-#endif /* AUTHENTICATION */
#endif
#if !defined(NO_LOGIN_P)
argv = addarg(argv, "-p");
OpenPOWER on IntegriCloud