freebsd-dev/lib/libutil
Ed Schouten eb63bf5c83 MFC r202500:
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
2010-01-24 14:30:57 +00:00
..
_secure_path.3
_secure_path.c
auth.3
auth.c
auth.conf.5
expand_number.3 Constify the first argument to expand_number() so that it can 2007-11-18 02:20:02 +00:00
expand_number.c Add #include <inttypes.h> for the strtoimax(). 2008-07-07 12:20:34 +00:00
flopen.3 Revert (once again, and hopefully for the last time) to flock(2) locks. 2009-06-06 18:47:03 +00:00
flopen.c Revert (once again, and hopefully for the last time) to flock(2) locks. 2009-06-06 18:47:03 +00:00
fparseln.3
fparseln.c
gr_util.c Merge from head to stable/8: 2009-12-18 20:05:10 +00:00
hexdump.3 Merge hexdump(9) to userland as hexdump(3) in libutil. I'm tired of doing 2008-07-01 22:30:57 +00:00
hexdump.c Merge hexdump(9) to userland as hexdump(3) in libutil. I'm tired of doing 2008-07-01 22:30:57 +00:00
humanize_number.3 Adjust history. 2007-09-28 15:31:44 +00:00
humanize_number.c Merge NetBSD revision 1.14: humanize_number.c is now 2-clause BSD licensed. 2009-06-23 23:27:35 +00:00
kinfo_getfile.3 Note that the structures are defined in <sys/user.h> in the text (using 2009-06-15 15:43:00 +00:00
kinfo_getfile.c Include param.h instead of types.h when using user.h. Otherwise there is 2008-12-27 11:12:23 +00:00
kinfo_getvmmap.3 Fix copy-and-paste-o's from kinfo_getfile.3 in kinfo_getvmmap.3. 2009-06-24 12:52:59 +00:00
kinfo_getvmmap.c Include param.h instead of types.h when using user.h. Otherwise there is 2008-12-27 11:12:23 +00:00
kld.3 Adjust history. 2007-09-28 15:31:44 +00:00
kld.c - Add include for libutil.h and string.h for prototype. 2006-05-25 04:01:04 +00:00
libutil.h Merge user/peter/kinfo branch as of r185547 into head. 2008-12-02 06:50:26 +00:00
login_auth.3
login_auth.c
login_cap.3 Document the quirks of ~/.login_conf and LOGIN_MECLASS. 2007-06-14 09:33:37 +00:00
login_cap.c Avoid assigning a const char * to a char *. 2008-11-04 13:49:53 +00:00
login_cap.h Since in_lt() and in_lts() are not static, assume that they are intended to 2008-10-20 17:17:58 +00:00
login_class.3 Since setclasscpumask() is not static, assume that it is intended to be 2008-10-20 17:03:05 +00:00
login_class.c Usermode portion of the support for swap allocation accounting: 2009-06-23 20:57:27 +00:00
login_crypt.c
login_ok.3 Fix a typo: "the give login class" to "the given login class." 2006-11-05 19:00:08 +00:00
login_ok.c
login_times.3 Since in_lt() and in_lts() are not static, assume that they are intended to 2008-10-20 17:17:58 +00:00
login_times.c Additional style and whitespace fixes. 2008-10-20 17:09:50 +00:00
login_tty.3
login_tty.c MFC r202500: 2010-01-24 14:30:57 +00:00
login.3
login.c Remove California Regent's clause 3, per letter 2007-01-09 01:02:06 +00:00
login.conf.5 Integrate the new MPSAFE TTY layer to the FreeBSD operating system. 2008-08-20 08:31:58 +00:00
logout.3
logout.c Remove California Regent's clause 3, per letter 2007-01-09 01:02:06 +00:00
logwtmp.3
logwtmp.c Use strlcpy() when we mean it. 2008-10-17 21:21:14 +00:00
Makefile Bump the version of all non-symbol-versioned shared libraries in 2009-07-19 17:25:24 +00:00
pidfile.3 Add missing .Pp 2009-06-06 17:34:49 +00:00
pidfile.c There is no point in releasing a lock on a file which we've unlinked and 2008-10-20 17:41:08 +00:00
property.3
property.c
pty.3 Update the manpage for openpty(3) to account for the recent fixes. 2008-01-14 23:49:56 +00:00
pty.c Add missing header. 2008-11-04 13:50:50 +00:00
pw_util.c MFC r199826: 2009-12-17 18:56:52 +00:00
realhostname_sa.3
realhostname.3
realhostname.c Fixing !INET6 builds. 2008-11-25 02:15:09 +00:00
stub.c
trimdomain.3
trimdomain.c
uucplock.3
uucplock.c Remove California Regent's clause 3, per letter 2007-01-09 01:02:06 +00:00