diff options
| author | jtc <jtc@NetBSD.org> | 1994-04-15 22:43:25 +0000 |
|---|---|---|
| committer | jtc <jtc@NetBSD.org> | 1994-04-15 22:43:25 +0000 |
| commit | 293ba06c9dd65313d42422bdaadeaba67fc7a8e6 (patch) | |
| tree | 9c42c1b33161fe44bd1f0eba40c38297b4d88d16 /lib/libc/sys/setgroups.2 | |
| parent | 914b69074538ef52bb4266b849892ff750a06348 (diff) | |
Describe causes of EINVAL error.
NGROUPS -> NGROUPS_MAX.
Diffstat (limited to 'lib/libc/sys/setgroups.2')
| -rw-r--r-- | lib/libc/sys/setgroups.2 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/libc/sys/setgroups.2 b/lib/libc/sys/setgroups.2 index 4adcd09ed07..a7884c840b9 100644 --- a/lib/libc/sys/setgroups.2 +++ b/lib/libc/sys/setgroups.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)setgroups.2 6.7 (Berkeley) 3/10/91 -.\" $Id: setgroups.2,v 1.4 1994/03/29 02:46:37 jtc Exp $ +.\" $Id: setgroups.2,v 1.5 1994/04/15 22:43:25 jtc Exp $ .\" .Dd March 10, 1991 .Dt SETGROUPS 2 @@ -53,9 +53,7 @@ The parameter .Fa ngroups indicates the number of entries in the array and must be no more than -.Dv NGROUPS , -as defined in -.Ao Pa sys/param.h Ac . +.Dv NGROUPS_MAX . .Pp Only the super-user may set new groups. .Sh RETURN VALUES @@ -67,6 +65,11 @@ The .Fn setgroups call will fail if: .Bl -tag -width Er +.It Bq Er EINVAL +The value of +.Fa ngroups +is greater than +.Dv NGROUPS_MAX . .It Bq Er EPERM The caller is not the super-user. .It Bq Er EFAULT |
