Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108606095
D40959.id124505.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
801 B
Referenced Files
None
Subscribers
None
D40959.id124505.diff
View Options
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,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
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 8:13 PM (7 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16210365
Default Alt Text
D40959.id124505.diff (801 B)
Attached To
Mode
D40959: groupmember(9), realgroupmember(9): Impact of signature change
Attached
Detach File
Event Timeline
Log In to Comment