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

Function bootstrap_runtime_parent_override

src/daemon/bootstrap.c:227–230  ·  view source on GitHub ↗

#1574/#1621: the rendezvous directory is created under %LOCALAPPDATA% * (Windows) or /tmp — /private/tmp on macOS — and that ancestry is not always * acceptable to the private-directory walk. A profile that carries a * mutation-granting ACE for an untrusted identity (an AppContainer capability * SID, for instance) fails it, and the binary then cannot start at all: every * command needs this e

Source from the content-addressed store, hash-verified

225 * cbm_safe_getenv never truncates: a value too long for the buffer is reported
226 * as absent, so no half a path can ever become a runtime parent. */
227static const char *bootstrap_runtime_parent_override(char *buffer, size_t capacity) {
228 const char *value = cbm_safe_getenv("CBM_RUNTIME_DIR", buffer, capacity, NULL);
229 return value && value[0] != '\0' ? value : NULL;
230}
231
232cbm_daemon_ipc_endpoint_t *cbm_daemon_bootstrap_endpoint_new(const char *runtime_parent) {
233 char key[CBM_DAEMON_KEY_SIZE];

Callers 1

Calls 1

cbm_safe_getenvFunction · 0.85

Tested by

no test coverage detected