diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-04-12 14:20:46 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-04-12 14:20:46 +0200 |
commit | e61e6df43ab0b9014f524abf76ea033086b7dcdf (patch) | |
tree | 5285683b22ddb5bf66dfbac1af2dbab952a2ee2e /src | |
parent | 48c1da538a4eb3cf73836fc7692105e5ab99a8d4 (diff) |
Check if config dir is a directory and not just if something with that name exists.
Diffstat (limited to 'src')
-rw-r--r-- | src/configfile.cc | 2 |
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()); |