Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/login kill the space in address formatting to match ...



details:   https://anonhg.NetBSD.org/src/rev/93b22035a01a
branches:  trunk
changeset: 750393:93b22035a01a
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 29 19:27:43 2009 +0000

description:
kill the space in address formatting to match what other daemons do.

diffstat:

 usr.bin/login/common.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r aa3cf6f1fb51 -r 93b22035a01a usr.bin/login/common.c
--- a/usr.bin/login/common.c    Tue Dec 29 19:26:13 2009 +0000
+++ b/usr.bin/login/common.c    Tue Dec 29 19:27:43 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: common.c,v 1.1 2009/12/29 19:26:13 christos Exp $      */
+/*     $NetBSD: common.c,v 1.2 2009/12/29 19:27:43 christos Exp $      */
 
 /*-
  * Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994
@@ -29,7 +29,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: common.c,v 1.1 2009/12/29 19:26:13 christos Exp $");
+__RCSID("$NetBSD: common.c,v 1.2 2009/12/29 19:27:43 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -171,7 +171,7 @@
                if (have_ss) {
                        char ssbuf[1024];
                        (void)sockaddr_snprintf(ssbuf,
-                           sizeof(ssbuf), "%A (%a)", (void *)&ss);
+                           sizeof(ssbuf), "%A(%a)", (void *)&ss);
                         if (memcmp(&ass, &ss, alen) != 0)
                                syslog(LOG_NOTICE,
                                    "login %s on tty %s address mismatch "
@@ -182,7 +182,7 @@
                remote = 1;
        } else if (have_ss) {
                (void)sockaddr_snprintf(assbuf,
-                   sizeof(assbuf), "%A (%a)", (void *)&ss);
+                   sizeof(assbuf), "%A(%a)", (void *)&ss);
                remote = 1;
        } else if (hostname) {
                (void)snprintf(assbuf, sizeof(assbuf), "? ?");



Home | Main Index | Thread Index | Old Index