aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/initgroups.3
diff options
context:
space:
mode:
authorAnton Berezin <tobez@FreeBSD.org>2001-11-28 10:55:02 +0000
committerAnton Berezin <tobez@FreeBSD.org>2001-11-28 10:55:02 +0000
commit7d3346ca1f857d6078f948e03b83abae618820da (patch)
treec98e3ceceeb1cee49d8a3d0e9586c3f263f2f0dd /lib/libc/gen/initgroups.3
parentca7e26e312677acb6ef50eec78443e6f6a997559 (diff)
downloadsrc-7d3346ca1f857d6078f948e03b83abae618820da.tar.gz
src-7d3346ca1f857d6078f948e03b83abae618820da.zip
Do not write warning messages on stderr - a caller is expected to check
the return code and errno instead. Those warnings did not do any good for daemonized users of initgroups(3), and confused cvs clients that communicated with non-root cvs pserver. The committed fix differs from the one suggested in the PR, and was submitted by ru. PR: 15421 Approved by: markm Discussed on: -stable, -current at various times
Notes
Notes: svn path=/head/; revision=87054
Diffstat (limited to 'lib/libc/gen/initgroups.3')
-rw-r--r--lib/libc/gen/initgroups.38
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/gen/initgroups.3 b/lib/libc/gen/initgroups.3
index eb111513daef..115ab0c34305 100644
--- a/lib/libc/gen/initgroups.3
+++ b/lib/libc/gen/initgroups.3
@@ -61,10 +61,14 @@ is automatically included in the groups list.
Typically this value is given as
the group number from the password file.
.Sh RETURN VALUES
+.Rv -std initgroups
+.Sh ERRORS
The
.Fn initgroups
-function
-returns \-1 if it was not invoked by the super-user.
+function may fail and set
+.Va errno
+for any of the errors specified for the library function
+.Xr setgroups 2 .
.Sh SEE ALSO
.Xr setgroups 2 ,
.Xr getgrouplist 3