]> 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>
Fri, 7 Mar 2025 20:03:48 +0000 (21:03 +0100)
commit34b7c5fe317ef2beb69d2ce3bea38e23bd38fdd5
tree271c9b26c4bde75c367d8be09d714d5c871d1385
parent933daf66e80fc484a9c978c320f914c00853b187
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