des 23c5e9b816 Fix for the sshd(8) utmp problem. Previously, login(3) would ignore the tty
named by its argument and use ttyslot(3) instead to determine what slot to
use.  The problem is that sshd(8) calls pam_open_session(3) before forking
the child (as it should), at which point it does not have a controlling
terminal.  Also, ttyslot(3) is very crude as it assumes fd 0, 1 or 2 refers
to the controlling terminal, which is usually (but not always) the case.

Instead of using ttyslot(3) to determine the slot number, look up the
specified tty in /etc/ttys ourselves (this is what ttyslot(3) does anyway).

(perforce change 9969)

Sponsored by:	DARPA, NAI Labs
2002-04-20 12:23:04 +00:00
..
2002-04-13 21:54:09 +00:00
2002-03-22 09:22:15 +00:00
2001-07-09 23:12:23 +00:00
2002-04-19 11:24:02 +00:00
2002-03-21 23:39:28 +00:00
2002-03-21 23:39:28 +00:00
2002-03-25 13:52:45 +00:00
2002-03-25 13:52:45 +00:00
2001-09-30 21:41:46 +00:00
2002-03-21 23:39:28 +00:00
2002-03-21 23:39:28 +00:00
2002-03-22 00:12:20 +00:00
2002-03-21 23:54:04 +00:00
2002-01-06 08:47:19 +00:00
2001-12-21 18:26:01 +00:00
2002-03-21 23:39:28 +00:00
2002-04-14 22:27:12 +00:00