summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/getlogin.c
AgeCommit message (Collapse)AuthorFilesLines
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae1-1/+1
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers1-1/+1
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert1-3/+2
2010-06-19Fix error handling in Linux getlogin*.Ulrich Drepper1-2/+3
2010-03-24Fix Linux getlogin{_r,} implementationUlrich Drepper1-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.