diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-06-16 16:52:11 +0100 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-06-16 16:52:11 +0100 |
| commit | 253c4648431d4333b29baaffb3419882bfbb31ff (patch) | |
| tree | 8973e230e6e2627dfded464e1dcade209136d814 /liblfjail/config_store.cc | |
| parent | 8129d0ef4629f44cd89e3b79e8b66129bb9dc866 (diff) | |
| download | lfjail-253c4648431d4333b29baaffb3419882bfbb31ff.tar.gz lfjail-253c4648431d4333b29baaffb3419882bfbb31ff.tar.bz2 | |
updatesmain
Diffstat (limited to 'liblfjail/config_store.cc')
| -rw-r--r-- | liblfjail/config_store.cc | 4 |
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); |
