summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rooij <guido@FreeBSD.org>1998-02-05 18:37:02 +0000
committerGuido van Rooij <guido@FreeBSD.org>1998-02-05 18:37:02 +0000
commite28be89140365b0f6ffb18c77e2f0836e10e4a21 (patch)
treea75c1ff951898b3fc23c0810ae68d60d53e296db
parent7d6c26d67ed567deea7957610abcf7404e6bb1e8 (diff)
Notes
-rw-r--r--usr.bin/login/login.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index 5ed799855bde..b4d0282ad7c8 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.29 1997/09/28 08:49:22 markm Exp $";
+ "$Id: login.c,v 1.30 1997/10/19 09:34:06 joerg Exp $";
#endif /* not lint */
/*
@@ -438,6 +438,8 @@ 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,
@@ -448,6 +450,8 @@ main(argc, argv)
p = getpass("Password:");
ep = crypt(p, salt);
#endif/* SKEY */
+ (void)signal(SIGINT, SIG_IGN);
+ (void)signal(SIGQUIT, SIG_IGN);
if (pwd) {
#ifdef KERBEROS