aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/CheckFile.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/fs/CheckFile.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/CheckFile.cxx b/src/fs/CheckFile.cxx
index 3f44e8397..bd1798094 100644
--- a/src/fs/CheckFile.cxx
+++ b/src/fs/CheckFile.cxx
@@ -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",