On 18/05/2018 23:08, Brian Burkhalter wrote:
:
Here is another version which incorporates your suggestion:
http://cr.openjdk.java.net/~bpb/8202076/webrev.02/
GetFileAttributesEx follows sym links, FindFirstFile does not. You
should be able to quickly check it but I think the patch means that it
will return the size of the link file when it linked to an lock file.
Assuming I have this right, then you'll need to look at the
dwFileAttributes field in the WIN32_FIND_DATAW structure and return 0
when the attribute to indicate a reparse point is set.
BTW: Do you know if anyone has submitted a bug to Microsoft on this?
This issue is really about working around a regression in the runtime
that comes with the VS2017.
-Alan