Commit 97249cf2945e8fe18ed138af20d6e46761fd0470

Guilherme de Almeida Suckevicz 2014-05-14T22:06:24

getlogin-tests: avoid false failure under sudo/ssh etc. * modules/getlogin-tests (configure.ac): Check for ttyname(). * tests/test-getlogin.c (main): Don't depend on environment variables to correlate with getlogin(), since sudo and ssh etc. can tamper with the LOGNAME and USER env vars. Instead lookup the name from the uid associated with the stdin tty.