Commit Graph

9 Commits

Author SHA1 Message Date
Allan McRae d4697bc93d Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Joseph Myers 568035b787 Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
Paul Eggert 59ba27a63a Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
Ulrich Drepper c86434ccb5 (__getlogin_r_loginuid): Also fail if tpwd after pwuid call is NULL. 2010-08-06 19:18:05 -07:00
Andreas Schwab e35fcef8b7 More fixes to error handling in getlogin_r. 2010-06-21 07:57:12 -07:00
Ulrich Drepper 63c4ed22b5 Fix error handling in Linux getlogin*. 2010-06-19 09:54:28 -07:00
Ulrich Drepper 5ae958d741 Handle too-small buffers in Linux getlogin_r. 2010-05-05 09:44:50 -07:00
Ulrich Drepper aa6436d6ad Fix reading loginuid file in getlogin{,_r}. 2010-04-08 19:04:33 -07:00
Ulrich Drepper c8727fa6e5 Fix Linux getlogin{_r,} implementation
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.
2010-03-24 17:02:57 -07:00