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


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Nicolas Boos <nicolas.boos <at> wanadoo.fr>
Cc: Gnulib bugs <bug-gnulib <at> gnu.org>, 76876 <at> debbugs.gnu.org
Subject: bug#76876: logname output is often wrong when linked with glibc
Date: Sat, 8 Mar 2025 15:42:51 -0800
[Message part 1 (text/plain, inline)]
On 2025-03-08 08:46, Nicolas Boos via GNU coreutils Bug Reports wrote:
> It seems getlogin() is malfunctioning only with glibc.

It's the other way round: glibc is right (in the sense that it conforms 
to POSIX) and the other two are wrong.

> Adding a permanent fix to gnulib/getlogin.c code might be a better solution.

Any such fix should work around the musl bug. (Gnulib doesn't worry 
about uclibc.)

I expect such a patch would be welcome if someone had the time to write 
and test it. In the meantime I installed the attached to Gnulib, to 
document the incompatibility, which also occurs with getlogin_r.
[0001-getlogin-document-musl-bug.patch (text/x-patch, attachment)]

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.