mirror of
https://github.com/opnsense/src.git
synced 2026-03-19 09:13:43 -04:00
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 |
||
|---|---|---|
| .. | ||
| Makefile | ||
| ulog-helper.c | ||