Skip to content

Commit ee47afe

Browse files
committed
unistd::setgroups: Tweak comment about discouraged use of function
1 parent 1b132da commit ee47afe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/unistd.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,9 @@ pub fn getgroups() -> Result<Vec<Gid>> {
10281028
/// Set the list of supplementary group IDs for the calling process.
10291029
///
10301030
/// *Note:* On macOS, `getgroups()` may not return the same group list set by
1031-
/// calling `setgroups()`. Apple discourages the use of `setgroups()`.
1031+
/// calling `setgroups()`. The use of `setgroups()` on macOS is 'highly
1032+
/// discouraged' by Apple. Developers are referred to the `opendirectoryd`
1033+
/// daemon and its set of APIs.
10321034
///
10331035
/// [Further reading](http://man7.org/linux/man-pages/man2/getgroups.2.html)
10341036
///

0 commit comments

Comments
 (0)