fs/Traits: add constant CURRENT_DIRECTORY

This commit is contained in:
Max Kellermann
2015-02-25 19:13:58 +01:00
parent 81c49fba03
commit e3908c8de6
3 changed files with 7 additions and 2 deletions

View File

@@ -47,7 +47,8 @@ CheckDirectoryReadable(Path path_fs)
}
#ifndef WIN32
const auto x = AllocatedPath::Build(path_fs, ".");
const auto x = AllocatedPath::Build(path_fs,
PathTraitsFS::CURRENT_DIRECTORY);
if (!StatFile(x, st) && errno == EACCES)
FormatError(config_domain,
"No permission to traverse (\"execute\") directory: %s",