summaryrefslogtreecommitdiffstats
path: root/usr.bin/login
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2014-04-19 13:47:32 +0000
committerjilles <jilles@FreeBSD.org>2014-04-19 13:47:32 +0000
commit952140bbe1b9820206dd142048c7c01190ab73c1 (patch)
tree1f2011e8645fe084f7d981e61cf4815d40d96659 /usr.bin/login
parent754adcc08a3ed6ae332dc040469e290a1783411d (diff)
downloadFreeBSD-src-952140bbe1b9820206dd142048c7c01190ab73c1.zip
FreeBSD-src-952140bbe1b9820206dd142048c7c01190ab73c1.tar.gz
login: Remove broken dialup log message.
For 10 years, the "DIALUP <tty>, <user>" message has required having a hostname (-h) instead of not having a hostname; therefore, it is never logged. Given that dialup is obsolete and this has not been fixed, remove the log message. Note that LOGALL, which is defined by default, logs a message for all logins, including dialup logins.
Diffstat (limited to 'usr.bin/login')
-rw-r--r--usr.bin/login/login.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index 6ba15dc..503002d 100644
--- a/usr.bin/login/login.c
+++ b/usr.bin/login/login.c
@@ -489,14 +489,6 @@ main(int argc, char *argv[])
if (errno != EROFS)
syslog(LOG_ERR, "chown(%s): %m", ttyn);
- /*
- * Exclude cons/vt/ptys only, assume dialup otherwise
- * TODO: Make dialup tty determination a library call
- * for consistency (finger etc.)
- */
- if (hflag && isdialuptty(tty))
- syslog(LOG_INFO, "DIALUP %s, %s", tty, pwd->pw_name);
-
#ifdef LOGALL
/*
* Syslog each successful login, so we don't have to watch
OpenPOWER on IntegriCloud