| 120 | } |
| 121 | |
| 122 | static bool gf_native_executable(const char *path) { |
| 123 | if (!gf_absolute(path)) |
| 124 | return false; |
| 125 | #ifdef _WIN32 |
| 126 | size_t n = strlen(path); |
| 127 | return n >= 4 && path[n - 4] == '.' && (path[n - 3] == 'e' || path[n - 3] == 'E') && |
| 128 | (path[n - 2] == 'x' || path[n - 2] == 'X') && (path[n - 1] == 'e' || path[n - 1] == 'E'); |
| 129 | #else |
| 130 | return true; /* trusted internal resolution, not an arbitrary user program */ |
| 131 | #endif |
| 132 | } |
| 133 | |
| 134 | static bool gf_gate(cbm_git_facts_t *facts, cbm_git_facts_error_t *error) { |
| 135 | if (facts->stopped.status != CBM_GIT_FACTS_OK) { |
no test coverage detected