| 7753 | } |
| 7754 | |
| 7755 | static bool cbm_agent_registry_path_exists(const char *path, const void *context) { |
| 7756 | (void)context; |
| 7757 | struct stat state; |
| 7758 | #ifndef _WIN32 |
| 7759 | return path && path[0] && lstat(path, &state) == 0 && !S_ISLNK(state.st_mode); |
| 7760 | #else |
| 7761 | return path && path[0] && stat(path, &state) == 0; |
| 7762 | #endif |
| 7763 | } |
| 7764 | |
| 7765 | static bool cbm_agent_registry_command_exists(const char *command, const void *context) { |
| 7766 | const cbm_agent_registry_context_t *registry = context; |