Merge pull request #86 from daklqw/patch-1

run_program_conf.h
This commit is contained in:
billchenchina 2021-04-16 00:56:17 +08:00 committed by GitHub
commit 4075ac38b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)) {