Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/usr.bin/login Pull up following revision(s) (requested ...



details:   https://anonhg.NetBSD.org/src/rev/8d7317f92925
branches:  netbsd-2-0
changeset: 564947:8d7317f92925
user:      riz <riz%NetBSD.org@localhost>
date:      Fri Mar 17 17:07:25 2006 +0000

description:
Pull up following revision(s) (requested by jnemeth in ticket #10356):
        usr.bin/login/login.c: revision 1.87 via patch
login(1): PR/31059: don't issue different message for root login on
insecure terminal.

diffstat:

 usr.bin/login/login.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r 73694a5fb2c2 -r 8d7317f92925 usr.bin/login/login.c
--- a/usr.bin/login/login.c     Sun Feb 26 21:55:23 2006 +0000
+++ b/usr.bin/login/login.c     Fri Mar 17 17:07:25 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: login.c,v 1.77 2004/01/05 03:53:10 lukem Exp $       */
+/*     $NetBSD: login.c,v 1.77.2.1 2006/03/17 17:07:25 riz 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.77 2004/01/05 03:53:10 lukem Exp $");
+__RCSID("$NetBSD: login.c,v 1.77.2.1 2006/03/17 17:07:25 riz Exp $");
 #endif /* not lint */
 
 /*
@@ -482,9 +482,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",
@@ -499,7 +498,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