| 8117 | } |
| 8118 | |
| 8119 | static bool cbm_agent_registry_path_exists(const char *path, const void *context) { |
| 8120 | (void)context; |
| 8121 | struct stat state; |
| 8122 | #ifndef _WIN32 |
| 8123 | return path && path[0] && lstat(path, &state) == 0 && !S_ISLNK(state.st_mode); |
| 8124 | #else |
| 8125 | return path && path[0] && stat(path, &state) == 0; |
| 8126 | #endif |
| 8127 | } |
| 8128 | |
| 8129 | static bool cbm_agent_registry_command_exists(const char *command, const void *context) { |
| 8130 | const cbm_agent_registry_context_t *registry = context; |