MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / th_allowed_root_restore

Function th_allowed_root_restore

tests/test_httpd.c:1897–1903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1895}
1896
1897static void th_allowed_root_restore(const th_allowed_root_saved_t *saved) {
1898 if (saved->was_set) {
1899 cbm_setenv("CBM_ALLOWED_ROOT", saved->value, 1);
1900 } else {
1901 cbm_unsetenv("CBM_ALLOWED_ROOT");
1902 }
1903}
1904
1905typedef struct {
1906 th_ui_index_executor_t executor;

Callers 1

test_httpd.cFile · 0.85

Calls 2

cbm_setenvFunction · 0.85
cbm_unsetenvFunction · 0.85

Tested by

no test coverage detected