| 1116 | * guarantee; this check is a best-effort early skip on top of it. */ |
| 1117 | #ifdef _WIN32 |
| 1118 | static bool pkgmap_is_reparse_point(const char *abs_path) { |
| 1119 | wchar_t *wpath = cbm_path_to_wide(abs_path); |
| 1120 | if (!wpath) { |
| 1121 | return false; |
| 1122 | } |
| 1123 | DWORD attrs = GetFileAttributesW(wpath); |
| 1124 | free(wpath); |
| 1125 | if (attrs == INVALID_FILE_ATTRIBUTES) { |
| 1126 | return false; |
| 1127 | } |
| 1128 | return (attrs & FILE_ATTRIBUTE_REPARSE_POINT) != 0; |
| 1129 | } |
| 1130 | #endif |
| 1131 | |
| 1132 | /* Recursive filesystem walker that finds and parses package manifest |
no test coverage detected