1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
freebsd/libexec/ulog-helper
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
..
Makefile Minor cleanups to ulog-helper: 2011-06-21 17:59:51 +00:00
ulog-helper.c Do a better job at determining the username of the login session. 2012-04-19 21:12:08 +00:00