May be so but this is allowed and getpwuid(geteuid()) will do the wrong
thing for all but one login id sharing the same uid.
*shrug* I mean, yeah ... but so what? It's allowed, but we already
use getpwuid(getuid()) and we don't get bug reports on it being problem.
Practically speaking, pretty much all the programs I have seen use
either $USER or $LOGNAME.
I do not believe that the common practice is to use USER or LOGNAME.
My informal survey is that using getpwuid(getuid()) is by far more