From e61e6df43ab0b9014f524abf76ea033086b7dcdf Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 12 Apr 2020 14:20:46 +0200 Subject: Check if config dir is a directory and not just if something with that name exists. --- src/configfile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()); -- cgit v1.2.3