Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix getlogin_r namespace (bug 18527). | Joseph Myers | 2015-06-12 | 1 | -4/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Various functions in XPG4 bring in references to getlogin_r, which is not in XPG4; this is also a bug for some older POSIX versions which aren't yet covered by the linknamespace tests. This patch fixes this by making getlogin_r into a weak alias for __getlogin_r and using __getlogin_r as needed. Tested for x86_64 and x86 (testsuite, and that disassembly of installed stripped shared libraries is unchanged by the patch). [BZ #18527] * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and define as weak alias of __getlogin_r. Use libc_hidden_weak. * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise. * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise. * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise. * include/unistd.h (__getlogin_r): Declare. Use libc_hidden_proto. * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r. * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove variable. (test-xfail-XPG3/wordexp.h/linknamespace): Likewise. (test-xfail-XPG4/glob.h/linknamespace): Likewise. (test-xfail-XPG4/wordexp.h/linknamespace): Likewise. | ||||
* | Update copyright dates with scripts/update-copyrights. | Joseph Myers | 2015-01-02 | 1 | -1/+1 |
| | |||||
* | Update copyright notices with scripts/update-copyrights | Allan McRae | 2014-01-01 | 1 | -1/+1 |
| | |||||
* | Update copyright notices with scripts/update-copyrights. | Joseph Myers | 2013-01-02 | 1 | -1/+1 |
| | |||||
* | Replace FSF snail mail address with URLs. | Paul Eggert | 2012-02-09 | 1 | -3/+2 |
| | |||||
* | (__getlogin_r_loginuid): Also fail if tpwd after pwuid call is NULL. | Ulrich Drepper | 2010-08-06 | 1 | -1/+1 |
| | |||||
* | More fixes to error handling in getlogin_r. | Andreas Schwab | 2010-06-21 | 1 | -2/+6 |
| | |||||
* | Fix error handling in Linux getlogin*. | Ulrich Drepper | 2010-06-19 | 1 | -11/+13 |
| | |||||
* | Handle too-small buffers in Linux getlogin_r. | Ulrich Drepper | 2010-05-05 | 1 | -4/+13 |
| | |||||
* | Fix reading loginuid file in getlogin{,_r}. | Ulrich Drepper | 2010-04-08 | 1 | -4/+12 |
| | |||||
* | Fix Linux getlogin{_r,} implementation | Ulrich Drepper | 2010-03-24 | 1 | -0/+100 |
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. |