Skip to content

Draft: glocalfileinfo: Try GetFileAttributes

Luca Bacci requested to merge local-file-info-win32-enhancements into main

If the stat path failed with EACCES, try retrieving attributes with GetFileAttributes. For example, for the "System Volume Information" directory that Windows creates on each drive, CreateFile fails even with access rights set to 0, while GetFileAttributes succeeds.

This commit also fixes usage of statbuf.attributes when stat failed

Fixes #3279

Merge request reports