Reported by Allison Karlitskaya <allison.karlitskaya@redhat.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-08/msg00160.html>.
* lib/readutmp.c (read_utmp_from_systemd): For a systemd session of type
"web", add a single USER_PROCESS entry.
+2024-08-27 Bruno Haible <bruno@clisp.org>
+
+ readutmp: In systemd mode, show sessions of type "web".
+ Reported by Allison Karlitskaya <allison.karlitskaya@redhat.com> in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2024-08/msg00160.html>.
+ * lib/readutmp.c (read_utmp_from_systemd): For a systemd session of type
+ "web", add a single USER_PROCESS entry.
+
2024-08-26 Bruno Haible <bruno@clisp.org>
Fix a test failure from a clang that masquerades as gcc 13.
else if (pty != NULL)
tty = pty;
}
+ else if (strcmp (type, "web") == 0)
+ {
+ char *service;
+ if (sd_session_get_service (session, &service) < 0)
+ service = NULL;
+
+ tty = service;
+ }
}
/* Create up to two USER_PROCESS entries: one for the seat,