| 387 | static const char WS_SENSITIVE_MARK = '!'; |
| 388 | |
| 389 | bool cbm_workspace_grant_path(const char *cache_dir, char *out, size_t out_sz) { |
| 390 | if (!cache_dir || !cache_dir[0] || !out || out_sz == 0) { |
| 391 | return false; |
| 392 | } |
| 393 | int n = snprintf(out, out_sz, "%s/allowed_roots", cache_dir); |
| 394 | return n > 0 && (size_t)n < out_sz; |
| 395 | } |
| 396 | |
| 397 | /* Walk the grant file, invoking visit for each entry. visit returns true to stop. |
| 398 | * Returns the number of entries seen. */ |
no outgoing calls
no test coverage detected