[Toybox] [PATCH] bufgetgrgid: fix for very large groups.
enh
enh at google.com
Thu Jun 28 16:41:46 PDT 2018
In theory, both getpwuid_r and getgrgid_r need to loop until the buffer
is large enough. In practice, that's true for me with getgrgid_r. Even
though the old hard-coded pw buffer size was enough for me, I've fixed
that too on the assumption that there's someone out there that needs
the general code.
---
lib/lib.c | 48 ++++++++++++++++++++++++++++--------------------
1 file changed, 28 insertions(+), 20 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-bufgetgrgid-fix-for-very-large-groups.patch
Type: text/x-patch
Size: 2588 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20180628/c6757c71/attachment-0002.bin>
More information about the Toybox
mailing list