Hi Allison,

Based on the files named '3' and '4' in data-after.tar.gz, I believe the
attached change (not yet committed) has good chances of working. Can you
please give it a try?

Bruno

diff --git a/lib/readutmp.c b/lib/readutmp.c
index 10d79d1d81..3c4f97b146 100644
--- a/lib/readutmp.c
+++ b/lib/readutmp.c
@@ -867,6 +867,14 @@ read_utmp_from_systemd (idx_t *n_entries, STRUCT_UTMP **utmp_buf, int options)
                       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,

Reply via email to