MCPcopy Index your code
hub / github.com/nodejs/node / setgroups

Function setgroups

lib/internal/bootstrap/switches/does_own_process_state.js:68–79  ·  view source on GitHub ↗
(groups)

Source from the content-addressed store, hash-verified

66 }
67
68 function setgroups(groups) {
69 validateArray(groups, 'groups');
70 for (let i = 0; i < groups.length; i++) {
71 validateId(groups[i], `groups[${i}]`);
72 }
73 // Result is 0 on success. A positive integer indicates that the
74 // corresponding group was not found.
75 const result = _setgroups(groups);
76 if (result > 0) {
77 throw new ERR_UNKNOWN_CREDENTIAL('Group', groups[result - 1]);
78 }
79 }
80
81 function wrapIdSetter(type, method) {
82 return function(id) {

Callers

nothing calls this directly

Calls 1

validateIdFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…