diff options
| author | Tobias Brunner <tobias@strongswan.org> | 2015-06-23 09:46:18 +0200 |
|---|---|---|
| committer | Tobias Brunner <tobias@strongswan.org> | 2015-06-23 10:03:38 +0200 |
| commit | b01b331afe1f7215a4bae465928db5d050f8c2b9 (patch) | |
| tree | 565f2215be8effbea2ce938ca5184dd4de4a51a1 /src/libcharon/plugins/sql/test.sql | |
| parent | 5fbc709224ed12dd8d7ec1630a1c3ce12bf56545 (diff) | |
| download | strongswan-b01b331afe1f7215a4bae465928db5d050f8c2b9.tar.bz2 strongswan-b01b331afe1f7215a4bae465928db5d050f8c2b9.tar.xz | |
capabilities: Handle ERANGE in user and group lookups
As it turns out, getpwnam_r, getgrnam_r, and friends will return
ERANGE if _any_ user or group on the system is larger than will fit
into the scratch buffer you pass to them.
This reworks the resolve_uid and resolve_gid methods plus
init_supplementary_groups to use a variable-size buffer that is grown
until the results fit.
Based on a patch by Evan Broder.
Closes strongswan/strongswan#12.
Diffstat (limited to 'src/libcharon/plugins/sql/test.sql')
0 files changed, 0 insertions, 0 deletions
