aboutsummaryrefslogtreecommitdiffstats
path: root/liblfjail/config_store.cc
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-06-16 16:52:11 +0100
committerLexi Winter <ivy@FreeBSD.org>2025-06-16 16:52:11 +0100
commit253c4648431d4333b29baaffb3419882bfbb31ff (patch)
tree8973e230e6e2627dfded464e1dcade209136d814 /liblfjail/config_store.cc
parent8129d0ef4629f44cd89e3b79e8b66129bb9dc866 (diff)
downloadlfjail-253c4648431d4333b29baaffb3419882bfbb31ff.tar.gz
lfjail-253c4648431d4333b29baaffb3419882bfbb31ff.tar.bz2
updatesmain
Diffstat (limited to 'liblfjail/config_store.cc')
-rw-r--r--liblfjail/config_store.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/liblfjail/config_store.cc b/liblfjail/config_store.cc
index ae873ea..84ef0ae 100644
--- a/liblfjail/config_store.cc
+++ b/liblfjail/config_store.cc
@@ -31,7 +31,7 @@ void store::init(context const &ctx) {
std::string config_text;
// Load the configuration text.
- auto config_path = ctx.path("config.ucl");
+ auto config_path = ctx.dbdir / "config.ucl";
try {
read_file(config_path, std::back_inserter(config_text));
} catch (io_error const &exc) {
@@ -140,7 +140,7 @@ void store::write_all(this store const &self, context const &ctx) {
std::string ucl_text(ucl_c_text);
// Write the object to a file.
- auto config_path = ctx.path("config.ucl");
+ auto config_path = ctx.dbdir / "config.ucl";
try {
safe_write_file(config_path, ucl_text);