GNU bug report logs - #18386
logname fails with error "logname: no login name" (is there an echo in here)

Previous Next

Package: coreutils;

Reported by: Linda Walsh <coreutils <at> tlinx.org>

Date: Tue, 2 Sep 2014 00:08:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Linda Walsh <coreutils <at> tlinx.org>
Cc: 18386 <at> debbugs.gnu.org
Subject: Re: bug#18386: logname fails with error "logname: no login name"
 (is	there an echo in here)
Date: Wed, 03 Sep 2014 12:12:18 +0200
tag 18386 notabug
close 18386
stop

On 09/03/2014 11:06 AM, Linda Walsh wrote:
> Bernhard Voelker wrote:
>>   open("/proc/self/loginuid", O_RDONLY)   = 3
> ----
>      I don't have a /proc/self/loginuid
>
>
> How is it enabled in a vanilla kernel?
...
> Yup.... mine is stock from kernel.org
>
> I don't recall seeing any option for loginuid.
>
> What module is it?  I probably don't have it mounted.

Thanks for getting back.
I don't know why getlogin() is using /proc/self/loginuid on openSUSE,
and why their kernels provide that file while a vanilla kernel does not.
I think this issue should be discussed downstreams.
Anyway, as this is clearly not an issue with logname(1) and how it
uses getlogin(), I'm marking this as not a bug.

Have a nice day,
Berny





This bug report was last modified 6 years and 299 days ago.

Previous Next


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