| 892 | |
| 893 | #ifndef _WIN32 |
| 894 | static bool is_executable_file(const char *path) { |
| 895 | struct stat st; |
| 896 | return path && stat(path, &st) == 0 && S_ISREG(st.st_mode) && access(path, X_OK) == 0; |
| 897 | } |
| 898 | |
| 899 | static bool resolve_from_path(const char *name, char *out, size_t outsz) { |
| 900 | const char *path = getenv("PATH"); |
no test coverage detected