We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a53c481 commit 99417faCopy full SHA for 99417fa
judge/runguard.cc
@@ -923,9 +923,7 @@ void setrestrictions()
923
/* Set group-id (must be root for this, so before setting user). */
924
if ( use_group ) {
925
if ( setgid(rungid) ) error(errno,"cannot set group ID to `%d'",rungid);
926
- gid_t aux_groups[1];
927
- aux_groups[0] = rungid;
928
- if ( setgroups(1, aux_groups) ) error(errno,"cannot clear auxiliary groups");
+ if ( setgroups(0, NULL) ) error(errno,"cannot clear auxiliary groups");
929
930
verbose("using group ID `%d'",rungid);
931
}
0 commit comments