summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/login/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index fc21783..eae65b8 100644
--- a/usr.bin/login/login.c
+++ b/usr.bin/login/login.c
@@ -657,7 +657,7 @@ main(argc, argv)
* TODO: Make dialup tty determination a library call
* for consistency (finger etc.)
*/
- if (hostname==NULL && strchr("vpqstPQST", tty[sizeof("tty")-1]) == NULL)
+ if (hostname==NULL && isdialuptty(tty))
syslog(LOG_INFO, "DIALUP %s, %s", tty, pwd->pw_name);
#ifdef KERBEROS
OpenPOWER on IntegriCloud