| 3262 | } |
| 3263 | |
| 3264 | static int acls_supported(const char *path) |
| 3265 | { |
| 3266 | size_t offset = offset_1st_component(path); |
| 3267 | WCHAR wroot[MAX_PATH]; |
| 3268 | DWORD file_system_flags; |
| 3269 | |
| 3270 | if (offset && |
| 3271 | xutftowcsn(wroot, path, MAX_PATH, offset) > 0 && |
| 3272 | GetVolumeInformationW(wroot, NULL, 0, NULL, NULL, |
| 3273 | &file_system_flags, NULL, 0)) |
| 3274 | return !!(file_system_flags & FILE_PERSISTENT_ACLS); |
| 3275 | |
| 3276 | return 0; |
| 3277 | } |
| 3278 | |
| 3279 | int is_path_owned_by_current_sid(const char *path, struct strbuf *report) |
| 3280 | { |
no test coverage detected