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

Function bootstrap_runtime_parent_override

src/daemon/bootstrap.c:243–246  ·  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

241 * cbm_safe_getenv never truncates: a value too long for the buffer is reported
242 * as absent, so no half a path can ever become a runtime parent. */
243static const char *bootstrap_runtime_parent_override(char *buffer, size_t capacity) {
244 const char *value = cbm_safe_getenv("CBM_RUNTIME_DIR", buffer, capacity, NULL);
245 return value && value[0] != '\0' ? value : NULL;
246}
247
248/* An explicit parent keeps precedence: it carries the compile-time test seam
249 * and the lifecycle guards' isolated namespace. NULL means the account-wide

Callers 1

Calls 1

cbm_safe_getenvFunction · 0.85

Tested by

no test coverage detected