| 2984 | } |
| 2985 | |
| 2986 | static void cbm_crush_config_path(const char *home_dir, char *out, size_t out_sz) { |
| 2987 | char env_buf[CLI_BUF_1K]; |
| 2988 | const char *custom = cbm_safe_getenv("CRUSH_GLOBAL_CONFIG", env_buf, sizeof(env_buf), NULL); |
| 2989 | if (custom && custom[0]) { |
| 2990 | snprintf(out, out_sz, "%s", custom); |
| 2991 | return; |
| 2992 | } |
| 2993 | snprintf(out, out_sz, "%s/.config/crush/crush.json", home_dir); |
| 2994 | } |
| 2995 | |
| 2996 | static void cbm_goose_config_dir(const char *home_dir, char *out, size_t out_sz) { |
| 2997 | #ifdef _WIN32 |
no test coverage detected