about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/getlogin.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright notices with scripts/update-copyrightsAllan McRae2014-01-011-1/+1
|
* Update copyright notices with scripts/update-copyrights.Joseph Myers2013-01-021-1/+1
|
* Replace FSF snail mail address with URLs.Paul Eggert2012-02-091-3/+2
|
* Fix error handling in Linux getlogin*.Ulrich Drepper2010-06-191-2/+3
|
* Fix Linux getlogin{_r,} implementationUlrich Drepper2010-03-241-0/+39
The old implementation uses fd 0 to determine the login TTY. This was needed because using /dev/tty it is not possible to deduce the login TTY. For some time now there is the pseudo-file /proc/self/loginuid which directly helps us to find the user. Prefer using this file. It also works if stdin is closed, redirected, or re-opened.