X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..0a7de7458d150b5d4dffc935ba399be265ef0a1a:/bsd/man/man2/setgroups.2 diff --git a/bsd/man/man2/setgroups.2 b/bsd/man/man2/setgroups.2 index 1547f7027..889c652f7 100644 --- a/bsd/man/man2/setgroups.2 +++ b/bsd/man/man2/setgroups.2 @@ -33,7 +33,7 @@ .\" .\" @(#)setgroups.2 8.2 (Berkeley) 4/16/94 .\" -.Dd April 16, 1994 +.Dd September 15, 2010 .Dt SETGROUPS 2 .Os BSD 4.2 .Sh NAME @@ -45,7 +45,7 @@ .Ft int .Fn setgroups "int ngroups" "const gid_t *gidset" .Sh DESCRIPTION -.Fn Setgroups +.Fn setgroups sets the group access list of the current user process according to the array .Fa gidset . @@ -56,6 +56,10 @@ more than .Dv {NGROUPS_MAX} . .Pp Only the super-user may set new groups. +.Pp +Use of +.Fn setgroups +is highly discouraged. .Sh RETURN VALUES A 0 value is returned on success, -1 on error, with an error code stored in