Hello Kevin On Thu, 16 Aug 2018 at 00:02, Kevin Brebanov <kevin.brebanov@xxxxxxxxx> wrote: > > Hi, > > It looks like the getgroups(3p) manpage has a typo. > (http://man7.org/linux/man-pages/man3/getgroups.3p.html) > > Under the "Examples" section: > --- > int nogroups; > > ngroups = getgroups(ngroups_max, group); > --- > > "nogroups" is declared but the return value of getgroups is assigned > to "ngroups". This is a bug in the upstream standard. I've filed bug reports: https://austingroupbugs.net/view.php?id=1399 https://austingroupbugs.net/view.php?id=1400 Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/