@Lastique
Latest commit 1db4474 Mar 31, 2023 History
…1 shares.

If the file handle for a directory in a SMBv1 share was opened with
FILE_READ_ATTRIBUTES access mode, GetFileInformationByHandleEx with
FileAttributeTagInfo returns FILE_ATTRIBUTE_NORMAL in the attributes, which
affected status, symlink_status and everything depending on those.

Work around this Windows bug by adding FILE_READ_EA everywhere where we need
attributes to be correct.

Also, use GENERIC_READ access mode when we call GetFileTime on the handle
afterwards. GetFileTime documentation explicitly mentions that GENERIC_READ
is required for it.

Fixes #282.
19 contributors

Users who have contributed to this file

@Lastique @Beman @pdimov @Flamefire @alexeikh @guusw @Dani-Hub @whitequark @eldiener @mikecrowe @grafikrobot @stima