| 7815 | } |
| 7816 | |
| 7817 | static bool cbm_agent_registry_path_exists(const char *path, const void *context) { |
| 7818 | (void)context; |
| 7819 | struct stat state; |
| 7820 | #ifndef _WIN32 |
| 7821 | return path && path[0] && lstat(path, &state) == 0 && !S_ISLNK(state.st_mode); |
| 7822 | #else |
| 7823 | return path && path[0] && stat(path, &state) == 0; |
| 7824 | #endif |
| 7825 | } |
| 7826 | |
| 7827 | static bool cbm_agent_registry_command_exists(const char *command, const void *context) { |
| 7828 | const cbm_agent_registry_context_t *registry = context; |