Module Name: src
Committed By: christos
Date: Tue Dec 29 20:15:15 UTC 2009
Modified Files:
src/usr.bin/login: common.c
Log Message:
don't repeat the word login twice (syslog prepends the program name login:)
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 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.2 src/usr.bin/login/common.c:1.3
--- src/usr.bin/login/common.c:1.2 Tue Dec 29 14:27:43 2009
+++ src/usr.bin/login/common.c Tue Dec 29 15:15:15 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: common.c,v 1.2 2009/12/29 19:27:43 christos Exp $ */
+/* $NetBSD: common.c,v 1.3 2009/12/29 20:15:15 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.2 2009/12/29 19:27:43 christos Exp $");
+__RCSID("$NetBSD: common.c,v 1.3 2009/12/29 20:15:15 christos Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -200,17 +200,17 @@
username, tty);
} else if (nested != NULL) {
if (remote)
- syslog(LOG_NOTICE, "login %s to %s on tty %s from %s / "
+ syslog(LOG_NOTICE, "%s to %s on tty %s from %s / "
"%s", nested, pwd->pw_name, tty, hname, assbuf);
else
- syslog(LOG_NOTICE, "login %s to %s on tty %s", nested,
+ syslog(LOG_NOTICE, "%s to %s on tty %s", nested,
pwd->pw_name, tty);
} else {
if (remote)
- syslog(LOG_NOTICE, "login %s on tty %s from %s / %s",
+ syslog(LOG_NOTICE, "%s on tty %s from %s / %s",
pwd->pw_name, tty, hname, assbuf);
else
- syslog(LOG_NOTICE, "login %s on tty %s",
+ syslog(LOG_NOTICE, "%s on tty %s",
pwd->pw_name, tty);
}
(void)gettimeofday(&now, NULL);