| 7902 | } |
| 7903 | |
| 7904 | static bool cbm_agent_registry_path_exists(const char *path, const void *context) { |
| 7905 | (void)context; |
| 7906 | struct stat state; |
| 7907 | #ifndef _WIN32 |
| 7908 | return path && path[0] && lstat(path, &state) == 0 && !S_ISLNK(state.st_mode); |
| 7909 | #else |
| 7910 | return path && path[0] && stat(path, &state) == 0; |
| 7911 | #endif |
| 7912 | } |
| 7913 | |
| 7914 | static bool cbm_agent_registry_command_exists(const char *command, const void *context) { |
| 7915 | const cbm_agent_registry_context_t *registry = context; |