port to GNU hosts, where getuid and friends can fail
commit71b7ddcdd5c473f9eaf6035b96acc68c14cb379e
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 20 Nov 2011 22:08:33 +0000 (20 14:08 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 20 Nov 2011 22:09:53 +0000 (20 14:09 -0800)
treea4d7544dc4ed5123a2ffaf40105fc8d0049ddf22
parent8ffc159611db3443282aee42465afc8a1597519c
port to GNU hosts, where getuid and friends can fail

* src/groups.c (main):
* src/install.c (need_copy):
* src/su.c (log_su):
* src/test.c (unary_operator):
* src/whoami.c (main):
Don't assume that getuid and friends always succeed.
This fixes the same problem that we recently fixed with 'id'.
src/groups.c
src/install.c
src/su.c
src/test.c
src/whoami.c