GNU bug report logs - #65992
readutmp should check for sd_booted() and not if /run/utmp exists

Previous Next

Package: coreutils;

Reported by: Thorsten Kukuk <kukuk <at> suse.com>

Date: Fri, 15 Sep 2023 10:02:02 UTC

Severity: normal

Full log


Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: Thorsten Kukuk <kukuk <at> suse.com>
Cc: "bug-gnulib <at> gnu.org" <bug-gnulib <at> gnu.org>, Paul Eggert <eggert <at> cs.ucla.edu>,
 "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: Re: readutmp should check for sd_booted() and not if /run/utmp exists
Date: Fri, 15 Sep 2023 15:37:33 +0200
Thorsten Kukuk wrote:
> Who creates an additional line for "seat0", which no other tools creates
> and which it did not create before. Since some display manager writes
> wrongly multiple utmp entries

To me, that's a feature, not a bug. Systemd has introduced the concept of
seats [1], and the concept of tty is not so adequate any more for
identifying a session (because some terminal emulators / desktops put
a line into /var/run/utmp for each open terminal emulator window [2]).
It is thus natural and useful to show the association between user and seat.

Bruno

[1] https://www.freedesktop.org/wiki/Software/systemd/multiseat/
[2] https://www.thkukuk.de/blog/Y2038_glibc_utmp_64bit/







This bug report was last modified 1 year and 278 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.