aboutsummaryrefslogtreecommitdiff
path: root/tests/killall.test
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-11-02 22:58:42 -0700
committerRob Landley <rob@landley.net>2019-11-03 19:20:31 -0600
commit126c317d5ceee7802d52fc6be1b695f759aa6725 (patch)
tree6e7e0e35dcf9171b5eb34aa2c9e6fa3e6c9c772b /tests/killall.test
parent3ead70e503b2809a250a70d161d525213f5328d8 (diff)
downloadtoybox-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/killall.test')
0 files changed, 0 insertions, 0 deletions