mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
/var/log/wtmp entries for ptys are treated differently in ac, since
they may not be logins. The code for determining whether it is a pty entry is broken. PR: 7137 Reviewed by: phk Submitted by: Tom Rush <tarush@mindspring.com>
This commit is contained in:
parent
50e040d480
commit
1ce46cef12
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37330
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@
|
|||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id: ac.c,v 1.8 1997/09/01 06:11:40 charnier Exp $";
|
||||
"$Id: ac.c,v 1.9 1998/05/25 05:21:29 steve Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -503,12 +503,12 @@ ac(fp)
|
|||
break;
|
||||
default:
|
||||
/*
|
||||
* if they came in on tty[p-y]*, then it is only
|
||||
* if they came in on tty[p-sP-S]*, then it is only
|
||||
* a login session if the ut_host field is non-empty
|
||||
*/
|
||||
if (*usr.ut_name) {
|
||||
if (strncmp(usr.ut_line, "tty", 3) != 0 ||
|
||||
strchr("pqrstuvwxy", usr.ut_line[3]) == 0 ||
|
||||
strchr("pqrsPQRS", usr.ut_line[3]) == 0 ||
|
||||
*usr.ut_host != '\0')
|
||||
head = log_in(head, &usr);
|
||||
} else
|
||||
|
|
Loading…
Reference in a new issue