Since telnetd has ignored the USER environment variable for logging in for

quite a bit of time, make telnetd ignore it completely now.  This results
in the :if=: entry in the default gettytab entry to honored instead of
being ignored.  The -h option to telnetd will continue to suppress the
inclusion of :if=:
This commit is contained in:
matt 2003-07-22 00:03:26 +00:00
parent 6b22e87c69
commit 9925d4a0c7
1 changed files with 2 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: telnetd.c,v 1.41 2003/07/15 10:14:54 itojun Exp $ */
/* $NetBSD: telnetd.c,v 1.42 2003/07/22 00:03:26 matt Exp $ */
/*
* Copyright (C) 1997 and 1998 WIDE Project.
@ -69,7 +69,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
#if 0
static char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95";
#else
__RCSID("$NetBSD: telnetd.c,v 1.41 2003/07/15 10:14:54 itojun Exp $");
__RCSID("$NetBSD: telnetd.c,v 1.42 2003/07/22 00:03:26 matt Exp $");
#endif
#endif /* not lint */
@ -910,9 +910,6 @@ telnet(f, p)
* other pty --> client data.
*/
if (getenv("USER"))
hostinfo = 0;
if (getent(defent, gettyname) == 1) {
char *cp=defstrs;