summaryrefslogtreecommitdiffstats
path: root/plugins/check_users.d
AgeCommit message (Collapse)AuthorFilesLines
9 daysfixes check_users build on OpenBSD (without utmpx)Stuart Henderson1-1/+1
2025-09-15Run clang-format againLorenz Kästle1-2/+4
2025-08-11check_users: Use sd_get_uids instead of sd_get_sessionLorenz Kästle1-1/+1
Previously check_users in combination with systemd used sd_get_sessions (3) to aquire the number of users, probably with the idea that every users opens a session. Turns out, that a user can have multiple sessions and we only really want to know how many users there are. This commit changes to sd_get_uids (3) to achieve that target.
2025-03-12users.c: Include default definitionsLorenz Kästle1-0/+1
2025-03-12Refactor check_usersLorenz Kästle3-0/+204