Skip to content

Commit bbdfa25

Browse files
meisterTeldering
andcommitted
Update judge/runguard.cc
Co-authored-by: Jaap Eldering <[email protected]>
1 parent 1473f05 commit bbdfa25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

judge/runguard.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ void setrestrictions()
826826
/* Set group-id (must be root for this, so before setting user). */
827827
if ( use_group ) {
828828
if ( setgid(rungid) ) error(errno,"cannot set group ID to `%d'",rungid);
829-
gid_t aux_groups[10];
829+
gid_t aux_groups[1];
830830
aux_groups[0] = rungid;
831831
if ( setgroups(1, aux_groups) ) error(errno,"cannot clear auxiliary groups");
832832

0 commit comments

Comments
 (0)