No further comment to <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10021#77> so I pushed that patch to groups, install, su, test, whoami.
This should fix all the problems that coreutils has with getuid etc. returning -1. (Now all we have to do is fix all the other packages that assume getuid etc. never fail. :-)