Page MenuHomeFreeBSD

D40959.diff
No OneTemporary

D40959.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
@@ -34,9 +34,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
@@ -57,9 +57,17 @@
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.
+The
+.Fn groupmember
+and
+.Fn realgroupmember
+functions return
+.Dv true
+if the given credentials indicate membership of the group
+.Fa gid ,
+or
+.Dv false
+otherwise.
.Sh SEE ALSO
.Xr getgroups 2
.Xr setgroups 2

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 3, 7:18 AM (19 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30748948
Default Alt Text
D40959.diff (801 B)

Event Timeline