bug#18386: logname fails with error "logname: no login name" (is there a
From:
Linda Walsh
Subject:
bug#18386: logname fails with error "logname: no login name" (is there an echo in here)
Date:
Wed, 03 Sep 2014 02:06:55 -0700
User-agent:
Thunderbird
Bernhard Voelker wrote:
On 09/02/2014 02:06 AM, Linda Walsh wrote:
logname
logname: no login name
logname(1) works here on a regular openSUSE-13.1 system, and
just calls getlogin(3) to get the information as required:
$ ltrace logname
...
getlogin() = "berny"
----
With the same I get:
ltrace -f logname|& more
[pid 40807] __libc_start_main(0x4017c0, 1, 0x7fff8b0306f8, 0x4042d0 <unfinished
...>
[pid 40807] strrchr("logname", '/') = nil