Devuan bug report logs - #900
procps: w does not query elogind for sessions

version graph

Package: procps; Maintainer for procps is Devuan Dev <devuan-dev@lists.dyne.org>; Source for procps is src:procps.

Reported by: Andrew Bower <andrew@bower.uk>

Date: Sun, 27 Jul 2025 22:50:01 UTC

Severity: grave

Found in version 2:4.0.4-8devuan1

Fixed in version 2.41-5devuan2

Done: dak@devuan.org

Full log


Message #58 received at 900@bugs.devuan.org (full text, mbox, reply):

Received: (at 900) by bugs.devuan.org; 9 Aug 2025 19:46:39 +0000
Return-Path: <andrew@bower.uk>
Delivered-To: bugs@devuan.org
Received: from email.devuan.org [2a01:4f9:fff1:13::5fd9:f9e4]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Sat, 09 Aug 2025 19:46:39 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id mJxlJJull2gAHQAAmSBk0A
	(envelope-from <andrew@bower.uk>)
	for <bugs@devuan.org>; Sat, 09 Aug 2025 19:46:35 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 66AA94A2; Sat,  9 Aug 2025 19:46:35 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,
	T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1098:0:86:1000:0:2:1; helo=mx1.mythic-beasts.com; envelope-from=andrew@bower.uk; receiver=<UNKNOWN> 
Received: from mx1.mythic-beasts.com (mx1.mythic-beasts.com [IPv6:2a00:1098:0:86:1000:0:2:1])
	by email.devuan.org (Postfix) with ESMTPS id DB2AB3B
	for <900@bugs.devuan.org>; Sat,  9 Aug 2025 19:46:31 +0000 (UTC)
Received: by mailhub-cam-d.mythic-beasts.com with esmtpsa  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
	(Exim 4.96)
	(envelope-from <andrew@bower.uk>)
	id 1ukpWQ-007V5r-1s;
	Sat, 09 Aug 2025 20:46:30 +0100
Received: from ajb85 by arden.ab8.net with local (Exim 4.98.2)
	(envelope-from <andrew@bower.uk>)
	id 1ukpWO-000000001hm-3GEl;
	Sat, 09 Aug 2025 20:46:28 +0100
Date: Sat, 9 Aug 2025 20:46:28 +0100
From: Andrew Bower <andrew@bower.uk>
To: Mark Hindley <mark@hindley.org.uk>
Cc: 900@bugs.devuan.org
Subject: Re: bug#900: procps: w does not query elogind for sessions
Message-ID: <aJellJyM7j5kZroP@arden.ab8.net>
References: <aIdUCiy-f5zBOGGe@hindley.org.uk>
 <aIfYMj-jSJbNoPZx@arden.ab8.net>
 <aIieJYSAP9eVSiyg@hindley.org.uk>
 <aIkujJEowteSzgya@shenstone.ab8.net>
 <aIuZjUI-ttE5Qa_o@hindley.org.uk>
 <aIvwXGoQ2izucZfR@shenstone.ab8.net>
 <175365644638.7806.4267640139913169199.reportbug@arden.ab8.net>
 <aJZyko8XZuADzuut@arden.ab8.net>
 <aJZ05pD7Z3sLMNCV@arden.ab8.net>
 <aJds06g7j58C78s-@hindley.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <aJds06g7j58C78s-@hindley.org.uk>
User-Agent: Mutt/2.2.13 (2024-03-09)
X-BlackCat-Spam-Score: 0
Hi Mark,

On Sat, Aug 09, 2025 at 04:44:19PM +0100, Mark Hindley wrote:
> On Fri, Aug 08, 2025 at 11:06:30PM +0100, Andrew Bower wrote:
> > https://git.devuan.org/devuan/util-linux/pulls/1
> 
> Thanks
> 
> Isn't
> 
> -	log_utmp(&cxt);
> +	log_utmp(&cxt);
> 
> no-op?

Yes! My patch is a crude edit of Chris's patch to neutralise this
removal but it is valid and works.

I think in retrospect that it might be clearer to have another quilt
patch layered on top of his patch.

> Do we need to restore the lastlog and btmp entries as well?
> 
> Perhaps we just drop the whole patch?

Lastlog was already written by pam_lastlog.so before trixie and the
replacement is pam_lastlog2. The tooling to read btmp was removed by
util-linux.

So I'm not sure there would be any benefit from reversing the rest of
the patch to be worth the increased delta from Debian. Bear in mind that
the patch wasn't just about dropping utmp, it was also about taking over
login from another source package.

An alternative approach I considered was to include code to read the
systemd-style login records directly in 'w' but that seemed like too
much for a patch and it would certainly take more time!

Andrew

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri Sep 26 23:22:43 2025;