Skip to content

Commit

Permalink
Update judge_client.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Mar 22, 2024
1 parent b710f23 commit 6354060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk/core/judge_client/judge_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2688,8 +2688,8 @@ int special_judge(char *oj_home, int problem_id, char *infile, char *outfile,
char tpjpath[BUFFER_SIZE/2];
if (DEBUG) printf("pid=%d\n", problem_id);
// prevent privileges settings caused spj fail in [issues686]
execute_cmd("chown www-data:judge %s/data/%d/spj %s %s %s", oj_home, problem_id,infile, outfile, userfile);
execute_cmd("chmod 750 %s/data/%d/spj %s %s %s", oj_home, problem_id,infile, outfile, userfile);
execute_cmd("chgrp judge %s/data/%d/spj %s %s %s", oj_home, problem_id,infile, outfile, userfile);
execute_cmd("chmod 751 %s/data/%d/spj %s %s %s", oj_home, problem_id,infile, outfile, userfile);

pid = fork();
int ret = 0;
Expand Down

0 comments on commit 6354060

Please sign in to comment.