mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 23:05:49 +01:00
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:
parent
b410b35213
commit
e662741c24
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37980
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user