diff options
author | guido <guido@FreeBSD.org> | 2001-05-21 20:19:59 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 2001-05-21 20:19:59 +0000 |
commit | 700525303e00db282ef7b403a1247d936ad741c8 (patch) | |
tree | 0ded8793ac8e5e6aadcdd96603e4f0bf20f41512 /usr.bin/login/login.c | |
parent | d47e07ca441e035890b59a28bc1d2e2cabe9510d (diff) | |
download | FreeBSD-src-700525303e00db282ef7b403a1247d936ad741c8.zip FreeBSD-src-700525303e00db282ef7b403a1247d936ad741c8.tar.gz |
Disable SIGHUP while getting the login name.
Reviewed by: security-officer
Diffstat (limited to 'usr.bin/login/login.c')
-rw-r--r-- | usr.bin/login/login.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 9142308..a0eae47 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -174,6 +174,7 @@ main(argc, argv) (void)signal(SIGQUIT, SIG_IGN); (void)signal(SIGINT, SIG_IGN); + (void)signal(SIGHUP, SIG_IGN); if (setjmp(timeout_buf)) { if (failures) badlogin(tbuf); @@ -387,6 +388,7 @@ main(argc, argv) /* committed to login -- turn off timeout */ (void)alarm((u_int)0); + (void)signal(SIGHUP, SIG_DFL); endpwent(); |