| 7759 | } |
| 7760 | |
| 7761 | static bool cbm_agent_registry_path_exists(const char *path, const void *context) { |
| 7762 | (void)context; |
| 7763 | struct stat state; |
| 7764 | #ifndef _WIN32 |
| 7765 | return path && path[0] && lstat(path, &state) == 0 && !S_ISLNK(state.st_mode); |
| 7766 | #else |
| 7767 | return path && path[0] && stat(path, &state) == 0; |
| 7768 | #endif |
| 7769 | } |
| 7770 | |
| 7771 | static bool cbm_agent_registry_command_exists(const char *command, const void *context) { |
| 7772 | const cbm_agent_registry_context_t *registry = context; |