diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-04 14:49:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-04 14:49:57 +0000 |
commit | c5d75b8807e6c3359b81bf974e5b40ffe3382d1f (patch) | |
tree | 87a2550eef6a5ab7f5507bf65adffef6e2063783 /src/sys/reboot.rs | |
parent | 6af11c1e70b02e1af36fdc339238d3a117fd3a94 (diff) | |
parent | 2b6f77a25762e2b4afd1c3b446fd0f477f862436 (diff) | |
download | nix-c5d75b8807e6c3359b81bf974e5b40ffe3382d1f.zip |
Merge #1409
1409: unistd: Increase maximum passwd/group buffer to 1MB r=asomers a=geofft
We have one UNIX group that contains most of our users whose size is
about 20 kB, so `Group::from_name` is failing with ERANGE.
The discussion on PR #864 suggests that 1 MB is a reasonable maximum -
it follows what FreeBSD's libc does. (glibc appears to have no maximum
on the _r function and will just double the buffer until malloc fails,
but that's not particularly Rusty.)
Co-authored-by: Geoffrey Thomas <geofft@twosigma.com>
Diffstat (limited to 'src/sys/reboot.rs')
0 files changed, 0 insertions, 0 deletions