diff options
Diffstat (limited to 'usr/src/uts/common/os/cred.c')
-rw-r--r-- | usr/src/uts/common/os/cred.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/uts/common/os/cred.c b/usr/src/uts/common/os/cred.c index 1ec63249ab..7add6a4b8e 100644 --- a/usr/src/uts/common/os/cred.c +++ b/usr/src/uts/common/os/cred.c @@ -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 @@ crgrpcopyin(int n, gid_t *gidset) } mem->crg_ref = 1; mem->crg_ngroups = n; + qsort(mem->crg_groups, n, sizeof (gid_t), gidcmp); return (mem); } |