| 9156 | } |
| 9157 | |
| 9158 | static bool cbm_agent_registry_path_exists(const char *path, const void *context) { |
| 9159 | (void)context; |
| 9160 | struct stat state; |
| 9161 | #ifndef _WIN32 |
| 9162 | return path && path[0] && lstat(path, &state) == 0 && !S_ISLNK(state.st_mode); |
| 9163 | #else |
| 9164 | return path && path[0] && stat(path, &state) == 0; |
| 9165 | #endif |
| 9166 | } |
| 9167 | |
| 9168 | static bool cbm_agent_registry_command_exists(const char *command, const void *context) { |
| 9169 | const cbm_agent_registry_context_t *registry = context; |