mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 08:58:42 +00:00
commit
4075ac38b4
@ -160,7 +160,7 @@ inline bool is_writable_file(string name) {
|
|||||||
if (name == "/") {
|
if (name == "/") {
|
||||||
return writable_file_name_set.count("system_root");
|
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) {
|
inline bool is_readable_file(const string &name) {
|
||||||
if (is_writable_file(name)) {
|
if (is_writable_file(name)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user