Commit dee6e498 authored by Max Kellermann's avatar Max Kellermann

fs/CheckFile: use IsAccessDenied()

parent b3723274
......@@ -47,8 +47,7 @@ try {
PathTraitsFS::CURRENT_DIRECTORY);
const FileInfo fi2(x);
} catch (const std::system_error &e) {
if (e.code().category() == std::system_category() &&
e.code().value() == EACCES)
if (IsAccessDenied(e))
FormatError(config_domain,
"No permission to traverse (\"execute\") directory: %s",
path_utf8.c_str());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment