diff options
author | Max Kellermann <max@duempel.org> | 2015-02-27 19:13:46 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-02-27 19:13:46 +0100 |
commit | 4dd861ee2351a9e3ac32b6aa744965a683f52955 (patch) | |
tree | b5d82b4bd6b1f69326709e7719b150d957e24283 /src/db | |
parent | 4f0f81a047a3a5b78f28b583ee4a6518c12af578 (diff) | |
download | mpd-4dd861ee2351a9e3ac32b6aa744965a683f52955.tar.gz mpd-4dd861ee2351a9e3ac32b6aa744965a683f52955.tar.xz mpd-4dd861ee2351a9e3ac32b6aa744965a683f52955.zip |
fs/FileSystem: merge CheckAccess() into PathExists()
PathExists() should better do what CheckAccess() does, and
CheckAccess() doesn't do what its name implies.
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/plugins/simple/SimpleDatabasePlugin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.cxx b/src/db/plugins/simple/SimpleDatabasePlugin.cxx index da8d44fb0..913141d22 100644 --- a/src/db/plugins/simple/SimpleDatabasePlugin.cxx +++ b/src/db/plugins/simple/SimpleDatabasePlugin.cxx @@ -117,7 +117,7 @@ SimpleDatabase::Check(Error &error) const assert(!path.IsNull()); /* Check if the file exists */ - if (!CheckAccess(path)) { + if (!PathExists(path)) { /* If the file doesn't exist, we can't check if we can write * it, so we are going to try to get the directory path, and * see if we can write a file in that */ |