Description of problem: The getlogin () function of perl is documented to return a string with the name of the user who originally logged in - undef in case of no success. This is used in tools that run with root privileges and need to find the user who had created the corresponding session. I verified the corresponding c-procedure - it also fails (see attachment) - the origin of the problem therefore is certainly in glibc. The sequence described below (Steps to reproduce) has worked flawlessly in all previous releases, but in cauldron it fails: the C library procedure returns NULL where the name of the login user is expected. Version-Release number of selected component (if applicable): glibc-2.22-15 How reproducible: 100% Steps to Reproduce: 1. Login and create a (user) command shell 2. su 3. run a program that calls getlogin () (C or perl - p.ex. attachment) Declaring the severity as normal; possibly to be raised to critical since this bug may cause applications to fail without evident reasons
Created attachment 7640 [details] Short c-procedure to reproduce the problem
CC: (none) => marja11Assignee: bugsquad => tmbSummary: Perl getlogin () returns undef where it should provide the name of the login user => Perl getlogin () returns undef where it should provide the name of the login user (corresponding c-procedure fails)
@ Juergen I suppose nothing changed since your last comment in April?
Assignee: tmb => basesystem