freebsd-dev/lib/libutil
Dag-Erling Smørgrav 324e8fd88f 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
..
_secure_path.3 Correct a typo. 2002-03-03 01:13:47 +00:00
_secure_path.c #include <stddef.h> for the definition of NULL instead of depending on 2002-02-25 01:25:30 +00:00
auth.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
auth.c Add __FBSDID()s to libutil 2001-09-30 22:35:07 +00:00
auth.conf.5 Add a missing cross-ref. 2002-04-16 10:15:51 +00:00
fparseln.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
fparseln.c Remove __P() usage. 2002-03-21 23:54:04 +00:00
libutil.h Remove multi-line __P() usage. 2002-03-22 09:22:15 +00:00
login_auth.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
login_auth.c Const poisoning. 2002-04-08 11:04:56 +00:00
login_cap.3 Const poisoning. 2002-04-08 11:04:56 +00:00
login_cap.c Const poisoning. 2002-04-08 11:04:56 +00:00
login_cap.h Const poisoning. 2002-04-08 11:04:56 +00:00
login_class.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
login_class.c Const poisoning. 2002-04-08 11:04:56 +00:00
login_crypt.c Const poisoning. 2002-04-08 11:04:56 +00:00
login_ok.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
login_ok.c Add __FBSDID()s to libutil 2001-09-30 22:35:07 +00:00
login_times.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
login_times.c Add __FBSDID()s to libutil 2001-09-30 22:35:07 +00:00
login_tty.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
login_tty.c Add __FBSDID()s to libutil 2001-09-30 22:35:07 +00:00
login.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
login.c Fix for the sshd(8) utmp problem. Previously, login(3) would ignore the tty 2002-04-20 12:23:04 +00:00
login.conf.5 o Document 'nocheckmail' login capability. 2001-11-16 04:39:43 +00:00
logout.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
logout.c Add __FBSDID()s to libutil 2001-09-30 22:35:07 +00:00
logwtmp.3 Fix the phrase about "both files", which must be left 2001-10-11 11:02:50 +00:00
logwtmp.c #include <time.h> for the definition of time functions instead of 2002-02-25 12:02:03 +00:00
Makefile o Reflect repo-copy of extattr.[c3] from libutil to libc, moving 2001-11-16 05:09:45 +00:00
property.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
property.c Add __FBSDID()s to libutil 2001-09-30 22:35:07 +00:00
pty.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
pty.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
pw_util.c Make mppath and masterpasswd pointers instead of arrays, and initialize 2002-04-17 00:18:15 +00:00
realhostname_sa.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
realhostname.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
realhostname.c Add __FBSDID()s to libutil 2001-09-30 22:35:07 +00:00
stub.c Add __FBSDID()s to libutil 2001-09-30 22:35:07 +00:00
trimdomain.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
trimdomain.c Add __FBSDID()s to libutil 2001-09-30 22:35:07 +00:00
uucplock.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
uucplock.c Add __FBSDID()s to libutil 2001-09-30 22:35:07 +00:00