1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/lib/libutil
Ed Schouten 2c8d07a874 Fix a regression that was introduced in r191882.
I changed login_tty() to only work when the application is not a session
leader yet. This works fine for applications in the base system, but it
turns out various applications call this function after daemonizing,
which means they already use their own session.

If setsid() fails, just call tcsetsid() on the current session.
tcsetsid() will already perform proper security checks.

Reported by:	Oliver Lehmann
MFC after:	1 week
2010-01-17 17:52:35 +00:00
..
_secure_path.3
_secure_path.c
auth.3
auth.c
auth.conf.5
expand_number.3
expand_number.c
flopen.3
flopen.c
fparseln.3
fparseln.c
gr_util.c Remove a dead store. 2009-12-12 00:11:40 +00:00
hexdump.3
hexdump.c
humanize_number.3
humanize_number.c
kinfo_getfile.3
kinfo_getfile.c
kinfo_getvmmap.3
kinfo_getvmmap.c
kld.3
kld.c
libutil.h Remove login(3), logout(3) and logwtmp(3) from libutil. 2010-01-13 18:59:51 +00:00
login_auth.3
login_auth.c
login_cap.3
login_cap.c
login_cap.h
login_class.3
login_class.c
login_crypt.c
login_ok.3
login_ok.c
login_times.3
login_times.c
login_tty.3
login_tty.c Fix a regression that was introduced in r191882. 2010-01-17 17:52:35 +00:00
login.conf.5
Makefile Remove login(3), logout(3) and logwtmp(3) from libutil. 2010-01-13 18:59:51 +00:00
pidfile.3
pidfile.c
property.3
property.c
pty.3
pty.c
pw_util.c
realhostname_sa.3
realhostname.3
realhostname.c
stub.c
trimdomain.3
trimdomain.c
uucplock.3
uucplock.c