Mercurial > illumos > illumos-gate
changeset 14054:0978afc523c5
3691 setgroups() needs a sorted GID list for more than 16 groups
Reviewed by: Marcel Telka <marcel@telka.sk>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Approved by: Richard Lowe <richlowe@richlowe.net>
author | Ira Cooper <ira@samba.org> |
---|---|
date | Thu, 13 Jun 2013 14:06:13 -0400 |
parents | c8bc47846d40 |
children | 031a1c9c05cb |
files | usr/src/uts/common/os/cred.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/os/cred.c Wed Jun 12 16:09:30 2013 -0500 +++ b/usr/src/uts/common/os/cred.c Thu Jun 13 14:06:13 2013 -0400 @@ -19,6 +19,9 @@ * CDDL HEADER END */ /* + * Copyright (c) 2013, Ira Cooper. All rights reserved. + */ +/* * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. */ @@ -1440,6 +1443,7 @@ } mem->crg_ref = 1; mem->crg_ngroups = n; + qsort(mem->crg_groups, n, sizeof (gid_t), gidcmp); return (mem); }