diff options
author | Bruce Evans <bde@FreeBSD.org> | 1998-07-31 07:22:31 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1998-07-31 07:22:31 +0000 |
commit | e662741c24aaa66afe83ad2ce0b7f9c24d1dd227 (patch) | |
tree | a8fffff6b5df36113ba4c0b9501b2f0b6c23f834 | |
parent | b410b35213c2913c0ced24571ce21ee257cb570f (diff) | |
download | src-e662741c24aaa66afe83ad2ce0b7f9c24d1dd227.tar.gz src-e662741c24aaa66afe83ad2ce0b7f9c24d1dd227.zip |
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
Notes
Notes:
svn path=/head/; revision=37980
-rw-r--r-- | usr.bin/login/login.c | 6 |
1 files changed, 1 insertions, 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]) |