Page MenuHomeFreeBSD

D40959.1789007891.diff
No OneTemporary

Size
704 B
Referenced Files
None
Subscribers
None

D40959.1789007891.diff

diff --git a/share/man/man9/groupmember.9 b/share/man/man9/groupmember.9
--- a/share/man/man9/groupmember.9
+++ b/share/man/man9/groupmember.9
@@ -36,9 +36,9 @@
.Sh SYNOPSIS
.In sys/param.h
.In sys/ucred.h
-.Ft int
+.Ft bool
.Fn groupmember "gid_t gid" "struct ucred *cred"
-.Ft int
+.Ft bool
.Fn realgroupmember "gid_t gid" "struct ucred *cred"
.Sh DESCRIPTION
The
@@ -59,9 +59,8 @@
works the same except that it considers instead the real and supplementary
groups, and not the effective one.
.Sh RETURN VALUES
-If the
-.Fa gid
-is found, 1 is returned, otherwise 0.
+Returns whether the credentials indicate membership of the group
+.Fa gid .
.Sh SEE ALSO
.Xr getgroups 2
.Xr setgroups 2

File Metadata

Mime Type
text/plain
Expires
Thu, Sep 10, 2:38 AM (13 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29531623
Default Alt Text
D40959.1789007891.diff (704 B)

Event Timeline