From e662741c24aaa66afe83ad2ce0b7f9c24d1dd227 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Fri, 31 Jul 1998 07:22:31 +0000 Subject: [PATCH] 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 --- usr.bin/login/login.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 02081fbc4fbc..9589ab6f6503 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -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])