diff options
author | Elliott Hughes <enh@google.com> | 2019-11-02 22:58:42 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-11-03 19:20:31 -0600 |
commit | 126c317d5ceee7802d52fc6be1b695f759aa6725 (patch) | |
tree | 6e7e0e35dcf9171b5eb34aa2c9e6fa3e6c9c772b /tests/seq.test | |
parent | 3ead70e503b2809a250a70d161d525213f5328d8 (diff) | |
download | toybox-126c317d5ceee7802d52fc6be1b695f759aa6725.tar.gz |
id: support numeric lookup.
Fall back to converting the "name" to an integer and calling getpwuid().
We need to update `username` for the later call to getgrouplist().
Also fix the separator printing logic to avoid a trailing ',' on `id 0`.
Switch to FLAG() and move some declarations down to where they can be
initialized, both for clarity.
Also add simple tests. Sadly, there's no always-present user that is in
multiple groups.
Diffstat (limited to 'tests/seq.test')
0 files changed, 0 insertions, 0 deletions