]> Savannah Git Hosting - gnulib.git/commit
readutmp: Let callers distinguish LOGINs from USERs.
authorBruno Haible <bruno@clisp.org>
Wed, 19 Feb 2025 22:46:37 +0000 (23:46 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 19 Feb 2025 22:46:37 +0000 (23:46 +0100)
commit757345e8bad8cec0e05f9e1a0668232048a6c44c
treef545756950dcf90b639f1596d01588a6af11a6ed
parent66d32ceddd565abff57901c59014023a9426cc8a
readutmp: Let callers distinguish LOGINs from USERs.

Reported by Paul Eggert in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-02/msg00123.html>.

* lib/readutmp.h (LOGIN_PROCESS, UT_TYPE_LOGIN_PROCESS): New macros.
* lib/readutmp.c (read_utmp_from_systemd): Possibly use LOGIN_PROCESS
instead of USER_PROCESS, depending on the session's class.
ChangeLog
lib/readutmp.c
lib/readutmp.h