Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/usr.bin/login Pull up following revision(s) (requested by...
details: https://anonhg.NetBSD.org/src/rev/1d7c5d3ee10c
branches: netbsd-3
changeset: 577868:1d7c5d3ee10c
user: tron <tron%NetBSD.org@localhost>
date: Thu Mar 09 16:48:46 2006 +0000
description:
Pull up following revision(s) (requested by jnemeth in ticket #1198):
usr.bin/login/login.c: revision 1.87
PR/31059: Zafer Aydogan: login too verbose
Don't display a different message for root login on insecure terminal.
Approved by christos@.
diffstat:
usr.bin/login/login.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (49 lines):
diff -r e845ebc2372d -r 1d7c5d3ee10c usr.bin/login/login.c
--- a/usr.bin/login/login.c Wed Mar 01 17:17:38 2006 +0000
+++ b/usr.bin/login/login.c Thu Mar 09 16:48:46 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: login.c,v 1.82.2.2 2005/03/30 10:25:08 tron Exp $ */
+/* $NetBSD: login.c,v 1.82.2.3 2006/03/09 16:48:46 tron Exp $ */
/*-
* Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94";
#endif
-__RCSID("$NetBSD: login.c,v 1.82.2.2 2005/03/30 10:25:08 tron Exp $");
+__RCSID("$NetBSD: login.c,v 1.82.2.3 2006/03/09 16:48:46 tron Exp $");
#endif /* not lint */
/*
@@ -225,7 +225,7 @@
* -f is used to skip a second login authentication
* -h is used by other servers to pass the name of the remote host to
* login so that it may be placed in utmp/utmpx and wtmp/wtmpx
- * -a in addition to -h, a server my supply -a to pass the actual
+ * -a in addition to -h, a server may supply -a to pass the actual
* server address.
* -s is used to force use of S/Key or equivalent.
*/
@@ -503,9 +503,8 @@
* but with insecure terminal, refuse the login attempt.
*/
if (pwd && !rval && rootlogin && !rootterm(tty)) {
- (void)fprintf(stderr,
- "%s login refused on this terminal.\n",
- pwd->pw_name);
+ (void)printf("Login incorrect or refused on this "
+ "terminal.\n");
if (hostname)
syslog(LOG_NOTICE,
"LOGIN %s REFUSED FROM %s ON TTY %s",
@@ -520,7 +519,8 @@
if (pwd && !rval)
break;
- (void)printf("Login incorrect\n");
+ (void)printf("Login incorrect or refused on this "
+ "terminal.\n");
failures++;
cnt++;
/* we allow 10 tries, but after 3 we start backing off */
Home |
Main Index |
Thread Index |
Old Index