From e3908c8de6645b2a7577b47cb5c5e76c7c0b24be Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 25 Feb 2015 19:13:58 +0100 Subject: fs/Traits: add constant CURRENT_DIRECTORY --- src/fs/CheckFile.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fs/CheckFile.cxx') 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", -- cgit v1.2.3