diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-11-15 13:23:24 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-11-15 13:24:02 -0800 |
commit | 8f512f9bdb2cf436e4ec63c31410d8033d75779a (patch) | |
tree | 802f4b4d2a5737774286cfca31689323e4314686 /tests/id | |
parent | e36e6f2c6e95d6e23be805f7bab6c596b1818d22 (diff) | |
download | coreutils-8f512f9bdb2cf436e4ec63c31410d8033d75779a.tar.xz |
id: fix bug when euid != ruid
* src/id.c (main): Report an error if no args are given and getuid
fails, because print_full_info needs ruid. Redo code so that
getuid and friends are invoked only when needed; this makes the
code easier to follow, and is how I found the above bug.
Diffstat (limited to 'tests/id')
0 files changed, 0 insertions, 0 deletions