mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 17:32:43 +00:00
Use isdialuptty() rather than hard-coded heuristic.
This commit is contained in:
parent
b06ebb3255
commit
3169e0f139
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24894
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user