GNU bug report logs - #76876
logname output is often wrong when linked with glibc

Previous Next

Package: coreutils;

Reported by: Nicolas Boos <nicolas.boos <at> wanadoo.fr>

Date: Sat, 8 Mar 2025 23:08:03 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


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

From: Bruno Haible <bruno <at> clisp.org>
To: Nicolas Boos <nicolas.boos <at> wanadoo.fr>, bug-gnulib <at> gnu.org,
 Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 76876 <at> debbugs.gnu.org
Subject: Re: bug#76876: logname output is often wrong when linked with glibc
Date: Sun, 09 Mar 2025 12:08:38 +0100
I wrote:
> With this, coreutils should be fine, since it already imports the 'getlogin'
> module from gnulib.

Verified by comparing coreutils-9.5 with coreutils-HEAD on Alpine Linux 3.20:

With coreutils-9.5:

$ logname
bruno
$ su -
Password:
# logname
root

Now:

$ logname
bruno
$ su -
Password:
# logname
bruno

Paul, Pádraig: How about adding a coreutils/NEWS entry for this bug fix?

Bruno







This bug report was last modified 116 days ago.

Previous Next


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