aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/config-manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/config-manager.cpp b/common/config-manager.cpp
index b741757cc5..f157763926 100644
--- a/common/config-manager.cpp
+++ b/common/config-manager.cpp
@@ -77,8 +77,9 @@ void ConfigManager::loadDefaultConfigFile() {
void ConfigManager::loadConfigFile(const String &filename) {
_filename = filename;
+ FilesystemNode node(filename);
File cfg_file;
- if (!cfg_file.open(filename)) {
+ if (!cfg_file.open(node)) {
printf("Creating configuration file: %s\n", filename.c_str());
} else {
printf("Using configuration file: %s\n", _filename.c_str());