aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/ps.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-05-20 14:28:13 -0500
committerRob Landley <rob@landley.net>2016-05-20 14:28:13 -0500
commitb602f1c1513328fe91f70233c78d11d9e638982d (patch)
treedd0b209caa1d5027f56bccf2b8364cabbfa20570 /toys/posix/ps.c
parent9cfdb48722cba8bfaafee9de61411618d66365f3 (diff)
downloadtoybox-b602f1c1513328fe91f70233c78d11d9e638982d.tar.gz
Add bufgetgrgid()
Diffstat (limited to 'toys/posix/ps.c')
-rw-r--r--toys/posix/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/ps.c b/toys/posix/ps.c
index 445228fd..301c1f36 100644
--- a/toys/posix/ps.c
+++ b/toys/posix/ps.c
@@ -449,7 +449,7 @@ static char *string_field(struct carveup *tb, struct strawberry *field)
sprintf(out, "%lld", ll);
if (sl&64) {
if (which > PS_RUSER) {
- struct group *gr = getgrgid(ll);
+ struct group *gr = bufgetgrgid(ll);
if (gr) out = gr->gr_name;
} else {