summaryrefslogtreecommitdiff
path: root/usr.sbin/authpf/authpf.c
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2024-11-04 21:49:27 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2024-11-04 21:49:27 +0000
commitfb9348cbdf5296f2eaba2d14073d6cb6b3cb1e41 (patch)
tree343b7641fffde33a4fce2744d038baf530f670f0 /usr.sbin/authpf/authpf.c
parent413d51726b5b289508faed7846ce9ead95e40f96 (diff)
getgrouplist(3): always return the total number of groups found
In case there is not enough storage to store all the groups found, our implementation returned the size passed in *ngroups. This isn't very useful and is different from other implementations. Back in 1999 the NetBSD implementation was changed to return the actual number of groups found; that lets callers allocate a properly sized array, a behavior was later copied by FreeBSD and glibc. So align our implementation. The documentation doesn't need a change. ok millert@ gilles@
Diffstat (limited to 'usr.sbin/authpf/authpf.c')
0 files changed, 0 insertions, 0 deletions