#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
| 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. */ |
| 227 | static 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 | |
| 232 | cbm_daemon_ipc_endpoint_t *cbm_daemon_bootstrap_endpoint_new(const char *runtime_parent) { |
| 233 | char key[CBM_DAEMON_KEY_SIZE]; |
no test coverage detected