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: Bruno Haible <bruno <at> clisp.org>
Cc: Nicolas Boos <nicolas.boos <at> wanadoo.fr>, Rich Felker <dalias <at> libc.org>, bug-gnulib <at> gnu.org, 76876 <at> debbugs.gnu.org
Subject: bug#76876: logname output is often wrong when linked with glibc
Date: Sun, 9 Mar 2025 20:13:42 -0700
On 2025-03-09 11:49, Bruno Haible wrote:
> Nicolas Boos wrote:
>> This page says that the result of the logname command and the LOGNAME
>> variable must be the same:
>> https://www.ibm.com/docs/en/aix/7.3?topic=l-logname-command
> An AIX man page is not a specification for what we run on GNU systems.

Plus, that AIX man page is wrong even for AIX. Here's a /bin/sh 
transcript on AIX:

  $ export LOGNAME=ouch
  $ env | grep LOGNAME
  LOGNAME=ouch
  $ logname
  eggert
  $ uname -a
  AIX gcc119 3 7 00F9C1964C00

I.e., AIX agrees with GNU and conforms to POSIX.





This bug report was last modified 117 days ago.

Previous Next


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