Date: Sat, 07 Aug 2021 00:08:10 +0000 From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 172276] POSIX: {get,set}groups gidsetsize is u_int not int Message-ID: <bug-172276-99-3TJ3Fehwnc@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-172276-99@https.bugs.freebsd.org/bugzilla/> References: <bug-172276-99@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D172276 Ed Maste <emaste@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|Open |Closed --- Comment #2 from Ed Maste <emaste@freebsd.org> --- Fixed by: commit 4bc2174a1b489c36195ccc8cfc15e0775b817c69 Author: Moritz Buhl <gh@moritzbuhl.de> Date: Tue Jul 9 17:03:37 2019 +0200 kern: fail getgroup and setgroup with negative int Found using https://github.com/NetBSD/src/blob/trunk/tests/lib/libc/sys/t_getgroups= .c getgroups/setgroups want an int and therefore casting it to u_int resulted in `getgroups(-1, ...)` not returning -1 / errno =3D EINVAL. imp@ updated syscall.master and made changes markj@ suggested PR: 189941 Tested by: imp@ Reviewed by: markj@ Pull Request: https://github.com/freebsd/freebsd-src/pull/407 Differential Revision: https://reviews.freebsd.org/D30617 commit 9f3d1a98dd17b9f02912aecab328fd0315d8ef35 Author: Warner Losh <imp@FreeBSD.org> Date: Wed Jun 2 12:06:13 2021 -0600 regen after tweaks to getgroups and setgroups Sponsored by: Netflix --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-172276-99-3TJ3Fehwnc>