We don't need or want set_ttydefaults().

This commit is contained in:
mycroft 1994-03-08 06:40:04 +00:00
parent d5bc8cd801
commit 7aaedc30b0
2 changed files with 3 additions and 9 deletions

View File

@ -1,8 +1,8 @@
# from: @(#)Makefile 5.12 (Berkeley) 1/21/91 # from: @(#)Makefile 5.12 (Berkeley) 1/21/91
# $Id: Makefile,v 1.2 1993/08/01 05:39:18 mycroft Exp $ # $Id: Makefile,v 1.3 1994/03/08 06:40:04 mycroft Exp $
PROG= getty PROG= getty
SRCS= main.c init.c subr.c gettytab.c ttydefaults.c SRCS= main.c init.c subr.c gettytab.c
DPADD= ${LIBUTIL} DPADD= ${LIBUTIL}
LDADD= -lutil LDADD= -lutil
MAN5= gettytab.0 ttys.0 MAN5= gettytab.0 ttys.0

View File

@ -39,7 +39,7 @@ char copyright[] =
#ifndef lint #ifndef lint
/*static char sccsid[] = "from: @(#)main.c 5.16 (Berkeley) 3/27/91";*/ /*static char sccsid[] = "from: @(#)main.c 5.16 (Berkeley) 3/27/91";*/
static char rcsid[] = "$Id: main.c,v 1.3 1993/08/29 22:47:03 mycroft Exp $"; static char rcsid[] = "$Id: main.c,v 1.4 1994/03/08 06:40:05 mycroft Exp $";
#endif /* not lint */ #endif /* not lint */
#define USE_OLD_TTY #define USE_OLD_TTY
@ -271,12 +271,6 @@ main(argc, argv)
for (i = 0; environ[i] != (char *)0; i++) for (i = 0; environ[i] != (char *)0; i++)
env[i] = environ[i]; env[i] = environ[i];
makeenv(&env[i]); makeenv(&env[i]);
/*
* this is what login was doing anyway.
* soon we rewrite getty completely.
*/
set_ttydefaults(0);
execle(LO, "login", "-p", name, (char *) 0, env); execle(LO, "login", "-p", name, (char *) 0, env);
syslog(LOG_ERR, "%s: %m", LO); syslog(LOG_ERR, "%s: %m", LO);
exit(1); exit(1);