GNU bug report logs - #73928
"who" should support wtmpdb

Previous Next

Package: coreutils;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Mon, 21 Oct 2024 11:17:02 UTC

Severity: normal

Merged with 76346, 76347

Done: Chris Hofstaedtler <zeha <at> debian.org>

Bug is archived. No further changes may be made.

Full log


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

From: Chris Hofstaedtler <zeha <at> debian.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Thorsten Kukuk <kukuk <at> suse.com>, 1080330 <at> bugs.debian.org,
 Vincent Lefevre <vincent <at> vinc17.net>, 73928 <at> debbugs.gnu.org,
 Michael Stone <mstone <at> debian.org>
Subject: Re: bug#73928: Bug#1080330: coreutils: who no longer works
Date: Mon, 17 Feb 2025 00:07:02 +0100
* Paul Eggert <eggert <at> cs.ucla.edu> [250216 23:52]:
> At this point I confess I don't know what changes would be needed for GNU
> 'who'. I see a difference of opinion as to whether 'w' works. There seem to
> be multiple mechanisms in play (utmp, wtmp, wtmpdb, lastlog2, logind, maybe
> others?) and I don't know when to use which, or even how to use them except
> for the traditional utmp/wtmp files.
> 
> Perhaps whoever has changed the longstanding API (is that Thorsten Kukuk, or
> someone else? anyway I'll cc Thorsten) can chime in with a proposed patch to
> bleeding-edge GNU coreutils. This would probably mean a patch to Gnulib's
> readutmp module, which already is supposed to work with systemd's new utmp
> interfaces but I guess some people are reporting problems with it? (This is
> unclear.)
> 
> For what it's worth, I briefly looked at
> <https://build.opensuse.org/package/show/openSUSE%3AFactory/coreutils> and
> didn't see a patch there.  So perhaps the problem is already addressed in
> bleeding-edge Coreutils?

Looks like if Debian would build coreutils with --enable-systemd, it
would just work:

https://sources.debian.org/src/coreutils/9.5-1/lib/readutmp.c/?hl=678#L678

Chris





This bug report was last modified 92 days ago.

Previous Next


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