From 63540608cc6234fed44597750f1a141f4b513b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B5=A9=E6=96=8C?= Date: Fri, 22 Mar 2024 10:43:05 +0800 Subject: [PATCH] Update judge_client.cc --- trunk/core/judge_client/judge_client.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/core/judge_client/judge_client.cc b/trunk/core/judge_client/judge_client.cc index c5cf8907cbb..b2e80c18963 100644 --- a/trunk/core/judge_client/judge_client.cc +++ b/trunk/core/judge_client/judge_client.cc @@ -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;