1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 16:42:56 -08:00
openbsd-src/usr.bin/id
jca 2119819d27 Ignore extra groups that don't fit in the buffer passed to getgrouplist(3)
Our kernel supports 16 groups (NGROUPS_MAX), but nothing prevents
an admin from adding a user to more groups.  With that tweak we'll keep
on ignoring them instead of potentially reading past the buffer passed to
getgrouplist(3).  That behavior is explicitely described in initgroups(3).

ok millert@ gilles@
2024-11-04 21:59:15 +00:00
..
groups.1
id.1 If a command or interface first appeared in PWB/UNIX, UNIX System III or 2022-07-25 02:25:55 +00:00
id.c Ignore extra groups that don't fit in the buffer passed to getgrouplist(3) 2024-11-04 21:59:15 +00:00
Makefile
whoami.1