| 7964 | } |
| 7965 | |
| 7966 | static bool cbm_agent_registry_path_exists(const char *path, const void *context) { |
| 7967 | (void)context; |
| 7968 | struct stat state; |
| 7969 | #ifndef _WIN32 |
| 7970 | return path && path[0] && lstat(path, &state) == 0 && !S_ISLNK(state.st_mode); |
| 7971 | #else |
| 7972 | return path && path[0] && stat(path, &state) == 0; |
| 7973 | #endif |
| 7974 | } |
| 7975 | |
| 7976 | static bool cbm_agent_registry_command_exists(const char *command, const void *context) { |
| 7977 | const cbm_agent_registry_context_t *registry = context; |