Module Name: src
Committed By: christos
Date: Tue Dec 29 19:27:44 UTC 2009
Modified Files:
src/usr.bin/login: common.c
Log Message:
kill the space in address formatting to match what other daemons do.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/login/common.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/login/common.c
diff -u src/usr.bin/login/common.c:1.1 src/usr.bin/login/common.c:1.2
--- src/usr.bin/login/common.c:1.1 Tue Dec 29 14:26:13 2009
+++ src/usr.bin/login/common.c Tue Dec 29 14:27:43 2009
@@ -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), "? ?");