diff options
author | bde <bde@FreeBSD.org> | 1998-07-31 07:22:31 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-31 07:22:31 +0000 |
commit | 84dd1fd494b69f75890fd3c5a23d176735aff19d (patch) | |
tree | 3d17b8aec656f04857fc3aff8a54b8e5291b8e36 /usr.bin/login/login.c | |
parent | 7abe80df5936086ad1c00a52c55868cbffdbe023 (diff) | |
download | FreeBSD-src-84dd1fd494b69f75890fd3c5a23d176735aff19d.zip FreeBSD-src-84dd1fd494b69f75890fd3c5a23d176735aff19d.tar.gz |
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
Diffstat (limited to 'usr.bin/login/login.c')
-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 02081fb..9589ab6 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]) |