Use isdialuptty() rather than hard-coded heuristic.

This commit is contained in:
David Nugent 1997-04-13 15:26:04 +00:00
parent b06ebb3255
commit 3169e0f139
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24894

View File

@ -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