feat: add configurable UCE error pages

This commit is contained in:
udo
2026-06-12 08:59:09 +00:00
parent b957a2373b
commit 941f5aea08
12 changed files with 352 additions and 1 deletions
+9
View File
@@ -348,6 +348,15 @@ String cwd_get()
return(std::filesystem::current_path());
}
String process_start_directory()
{
// Primed in main() before any unit handler can chdir; fault recovery and
// config-relative path resolution anchor to this instead of the volatile
// per-unit working directory.
static String start_directory = cwd_get();
return(start_directory);
}
void cwd_set(String path)
{
chdir(path.c_str());