summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-04-12 14:20:46 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-04-12 14:20:46 +0200
commite61e6df43ab0b9014f524abf76ea033086b7dcdf (patch)
tree5285683b22ddb5bf66dfbac1af2dbab952a2ee2e
parent48c1da538a4eb3cf73836fc7692105e5ab99a8d4 (diff)
Check if config dir is a directory and not just if something with that name exists.
-rw-r--r--src/configfile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configfile.cc b/src/configfile.cc
index db1316b..192c5ee 100644
--- a/src/configfile.cc
+++ b/src/configfile.cc
@@ -82,7 +82,7 @@ bool createConfigPath()
{
const std::string configpath = getConfigPath();
- if(!Directory::exists(configpath))
+ if(!Directory::isDir(configpath))
{
DEBUG(configfile, "No configuration exists, creating directory '%s'\n",
configpath.c_str());