1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/libexec
Ed Schouten 1d2276c873 Do a better job at determining the username of the login session.
When multiple users share the same UID, the old code will simply pick an
arbitrary username to attach to the utmpx entries. Make the code a bit
more accurate by first checking whether getlogin() returns a username
which corresponds to the uid of the calling process. If this fails,
simply fall back to picking an arbitrary username.

Reported by:	saurik on GitHub
MFC after:	2 weeks
2012-04-19 21:12:08 +00:00
..
atrun
bootpd Make sure sections are sorted into conventional order. 2012-03-25 16:00:56 +00:00
comsat Make comsat(8) approximately 15% smaller. 2011-12-10 18:35:26 +00:00
fingerd
ftpd Spelling fixes for libexec/ 2012-01-07 16:09:54 +00:00
getty mdoc: terminate quoted strings. 2012-03-26 15:18:14 +00:00
lukemftpd Spelling fixes for libexec/ 2012-01-07 16:09:54 +00:00
mail.local Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to 2012-02-28 18:30:18 +00:00
mknetid Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
pppoed In libexec/pppoed/pppoed.c, use the correct printf length modifier for a 2011-12-16 16:07:39 +00:00
rbootd Spelling fixes for libexec/ 2012-01-07 16:09:54 +00:00
revnetgroup Spelling fixes for libexec/ 2012-01-07 16:09:54 +00:00
rlogind Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
rpc.rquotad
rpc.rstatd
rpc.rusersd
rpc.rwalld
rpc.sprayd
rshd Spelling fixes for libexec/ 2012-01-07 16:09:54 +00:00
rtld-aout Spelling fixes for libexec/ 2012-01-07 16:09:54 +00:00
rtld-elf Propagate the current state of rtld_bind_lock to dlopen_object() calls 2012-04-12 10:32:22 +00:00
save-entropy
smrsh Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to 2012-02-28 18:30:18 +00:00
talkd
tcpd
telnetd
tftp-proxy
tftpd Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
ulog-helper Do a better job at determining the username of the login session. 2012-04-19 21:12:08 +00:00
ypxfr Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor 2012-02-07 09:27:07 +00:00
Makefile
Makefile.inc