From 421a251ee87d06f457d31c94b96ef72fafc76bf8 Mon Sep 17 00:00:00 2001 From: daklqw Date: Thu, 15 Apr 2021 20:56:07 +0800 Subject: [PATCH] run_program_conf.h 163: readable_file_name_set => writable_file_name_set --- judger/uoj_judger/run/run_program_conf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judger/uoj_judger/run/run_program_conf.h b/judger/uoj_judger/run/run_program_conf.h index 461d86b..4a457d7 100644 --- a/judger/uoj_judger/run/run_program_conf.h +++ b/judger/uoj_judger/run/run_program_conf.h @@ -160,7 +160,7 @@ inline bool is_writable_file(string name) { if (name == "/") { return writable_file_name_set.count("system_root"); } - return is_in_set_smart(name, writable_file_name_set) || is_in_set_smart(realpath(name), readable_file_name_set); + return is_in_set_smart(name, writable_file_name_set) || is_in_set_smart(realpath(name), writable_file_name_set); } inline bool is_readable_file(const string &name) { if (is_writable_file(name)) {