Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++-ify rungard. #2344

Merged
merged 8 commits into from
Jun 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update judge/runguard.cc
Co-authored-by: Jaap Eldering <eldering@users.noreply.github.com>
  • Loading branch information
meisterT and eldering committed May 30, 2024
commit 11403e5a46ec186c0090188619a7c00dea045d1a
2 changes: 1 addition & 1 deletion judge/runguard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ void setrestrictions()
/* Set group-id (must be root for this, so before setting user). */
if ( use_group ) {
if ( setgid(rungid) ) error(errno,"cannot set group ID to `%d'",rungid);
gid_t aux_groups[10];
gid_t aux_groups[1];
aux_groups[0] = rungid;
if ( setgroups(1, aux_groups) ) error(errno,"cannot clear auxiliary groups");

Expand Down
Loading