aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/CheckFile.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-02-25 19:13:58 +0100
committerMax Kellermann <max@duempel.org>2015-02-25 19:53:35 +0100
commite3908c8de6645b2a7577b47cb5c5e76c7c0b24be (patch)
tree01f6aab7dc783a57c1cc87e47fa221af9b093a28 /src/fs/CheckFile.cxx
parent81c49fba031ba9071817e7e563c006ea637330b7 (diff)
downloadmpd-e3908c8de6645b2a7577b47cb5c5e76c7c0b24be.tar.gz
mpd-e3908c8de6645b2a7577b47cb5c5e76c7c0b24be.tar.xz
mpd-e3908c8de6645b2a7577b47cb5c5e76c7c0b24be.zip
fs/Traits: add constant CURRENT_DIRECTORY
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",