Skip to content

Commit 6186ca7

Browse files
Merge branch 'main' into executable-zipfile-fix-migration
2 parents 2884f8f + 80c1a43 commit 6186ca7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

judge/runguard.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -923,9 +923,7 @@ void setrestrictions()
923923
/* Set group-id (must be root for this, so before setting user). */
924924
if ( use_group ) {
925925
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");
926+
if ( setgroups(0, NULL) ) error(errno,"cannot clear auxiliary groups");
929927

930928
verbose("using group ID `%d'",rungid);
931929
}

webapp/src/Service/RejudgingService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ public function finishRejudging(Rejudging $rejudging, string $action, ?callable
335335
SET result = :aborted
336336
WHERE judgingid = :judgingid
337337
AND result IS NULL', ['aborted' => 'aborted', 'judgingid' => $submission['judgingid']]);
338+
$this->em->getConnection()->executeQuery(
339+
'DELETE FROM queuetask WHERE judgingid = :judgingid', ['judgingid' => $submission['judgingid']]);
338340
} else {
339341
$error = "Unknown action '$action' specified.";
340342
throw new BadMethodCallException($error);

0 commit comments

Comments
 (0)