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 1473f05 commit bbdfa25Copy full SHA for bbdfa25
judge/runguard.cc
@@ -826,7 +826,7 @@ void setrestrictions()
826
/* Set group-id (must be root for this, so before setting user). */
827
if ( use_group ) {
828
if ( setgid(rungid) ) error(errno,"cannot set group ID to `%d'",rungid);
829
- gid_t aux_groups[10];
+ gid_t aux_groups[1];
830
aux_groups[0] = rungid;
831
if ( setgroups(1, aux_groups) ) error(errno,"cannot clear auxiliary groups");
832
0 commit comments