MCPcopy Create free account
hub / github.com/coreutils/coreutils / setgroups

Function setgroups

src/chroot.c:67–82  ·  view source on GitHub ↗

At least Interix lacks supplemental group support. */

Source from the content-addressed store, hash-verified

65#if ! HAVE_SETGROUPS
66/* At least Interix lacks supplemental group support. */
67static int
68setgroups (size_t size, MAYBE_UNUSED gid_t const *list)
69{
70 if (size == 0)
71 {
72 /* Return success when clearing supplemental groups
73 as ! HAVE_SETGROUPS should only be the case on
74 platforms that don't support supplemental groups. */
75 return 0;
76 }
77 else
78 {
79 errno = ENOTSUP;
80 return -1;
81 }
82}
83#endif
84
85/* Determine the group IDs for the specified supplementary GROUPS,

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected