-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-Windows
Milestone
Description
On Windows File.Stat
doesn't use the file handle to retrieve attributes when the file is a directory, due to the lack of a ...ByHandle
Windows API which works on directories (GetFileInformationByHandle
only works on files), using the path instead.
This means there may be a TOCTOU issue, as the results returned by Stat
represent the attributes for the file at the path passed to Open
, which may no longer be the file represented by the file handle if the file has been moved/replaced.
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-Windows