[Changing the subject, as this is no longer related to getlogin().] Paul Eggert wrote: > $ src/who-enable-systemd > eggert pts/0 2026-04-18 08:41 (47.154.25.11) > gdm-greeter seat0 2026-04-17 17:26 > gdm-greeter tty1 2026-04-17 17:26 > $ src/who-disable-systemd > eggert pts/0 2026-04-18 08:41 (47.154.25.11) > > The gdm-greeter lines are nonsense and should not be displayed, as > nobody is logged in there.
Yes, this was already mentioned a while ago, and AFAIR the recommendation was that the 'who' program should filter out names like 'gdm-greeter' that don't designate an actual user. Bruno
