Backed out rev.1.31. It was a workaround for bugs in rev.1.4 of

libc/gen/getpass.c.  The old behaviour of blocking SIGINT and not
changing SIGQUIT was restored in rev.1.5 of getpass.c.  The change
here completely restores the old behaviour of not supporting killing
login with keyboard signals (only) at the password prompt.  There
is no reason to support this, since login can be exited normally
by typing a couple of ^D's.  Login certainly shouldn't dump core
in response to user input.  Previously, SIGQUIT killed login
immediately but SIGINT killed it only after the password was
entered.

PR:		7444
This commit is contained in:
Bruce Evans 1998-07-31 07:22:31 +00:00
parent b410b35213
commit e662741c24
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37980

View File

@ -42,7 +42,7 @@ static char copyright[] =
static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
"$Id: login.c,v 1.35 1998/06/01 08:47:04 amurai Exp $";
"$Id: login.c,v 1.36 1998/07/22 04:33:12 jdp Exp $";
#endif /* not lint */
/*
@ -446,8 +446,6 @@ main(argc, argv)
}
}
#else /* !LOGIN_CAP_AUTH */
(void)signal(SIGINT, SIG_DFL);
(void)signal(SIGQUIT, SIG_DFL);
#ifdef SKEY
permit_passwd = skeyaccess(username, tty,
hostname ? full_hostname : NULL,
@ -458,8 +456,6 @@ main(argc, argv)
p = getpass("Password:");
ep = crypt(p, salt);
#endif/* SKEY */
(void)signal(SIGINT, SIG_IGN);
(void)signal(SIGQUIT, SIG_IGN);
if (pwd) {
if (!p[0] && pwd->pw_passwd[0])