Regarding https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27640 :
Hello Wolfgang, What type of system is this? You are saying "Linux From Scratch version 8.0". What type of libc is it using? There are several competing ones [1]. > > FAIL: test-getlogin > > =================== > > > > test-getlogin.c:92: assertion 'strcmp (pwd->pw_name, buf) == 0' failed > > FAIL test-getlogin (exit status: 134) Please run the 'test-getlogin' program with ltrace (or, alternatively, insert printf statements that show what's going on). I get (in a regular login, or with sudo): $ ltrace ./test-getlogin __libc_start_main(0x400b46, 1, 0x7ffef8724a78, 0x403db0 <unfinished ...> getlogin() = "bruno" ttyname(0) = "/dev/pts/13" __xstat(1, "/dev/pts/13", 0x7ffef87248f0) = 0 getpwuid(1000, 0x7ffef87248f0, 0x7ffef87248f0, 0x7f3d50d1abb5) = 0x7f3d50feadc0 strcmp("bruno", "bruno") = 0 +++ exited (status 0) +++ What are the results for you? What else, that affects the operation of getlogin(), ttyname(), getpwuid(), could be special in your environment? Bruno [1] http://www.etalabs.net/compare_libcs.html