| 338 | static const char WS_SENSITIVE_MARK = '!'; |
| 339 | |
| 340 | bool cbm_workspace_grant_path(const char *cache_dir, char *out, size_t out_sz) { |
| 341 | if (!cache_dir || !cache_dir[0] || !out || out_sz == 0) { |
| 342 | return false; |
| 343 | } |
| 344 | int n = snprintf(out, out_sz, "%s/allowed_roots", cache_dir); |
| 345 | return n > 0 && (size_t)n < out_sz; |
| 346 | } |
| 347 | |
| 348 | /* Walk the grant file, invoking visit for each entry. visit returns true to stop. |
| 349 | * Returns the number of entries seen. */ |
no outgoing calls
no test coverage detected