MCPcopy Create free account
hub / github.com/git/git / acls_supported

Function acls_supported

compat/mingw.c:3264–3277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3262}
3263
3264static 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
3279int is_path_owned_by_current_sid(const char *path, struct strbuf *report)
3280{

Callers 1

Calls 1

xutftowcsnFunction · 0.85

Tested by

no test coverage detected