summaryrefslogtreecommitdiff
path: root/src/config.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.cc')
-rw-r--r--src/config.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.cc b/src/config.cc
index 4d7cf52..515c1eb 100644
--- a/src/config.cc
+++ b/src/config.cc
@@ -128,7 +128,8 @@ std::unique_ptr<Config> load(Logger* logger,
path.c_str(), strerror(errno));
return nullptr;
}
- auto root = path.parent_path();
+ std::error_code err;
+ auto root = std::filesystem::absolute(path.parent_path(), err);
std::unordered_map<std::string, std::string> data;
std::string line;
unsigned long num = 0;