access read the attributes and the security descriptor of the link
itself on Windows, so a dangling link passed F_OK and R_OK and a link to
a read-only file passed W_OK. A reparse point is now opened through its
target and the target's path is checked, as FreeBSD 11.4's kern_accessat
looks the path up with FOLLOW: a missing target fails with ENOENT and a
link loop with ELOOP.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Four sources defined NOMINMAX unconditionally, which redefines the macro the build already passes and warns on every MinGW build. Use the #ifndef guard the rest of the tree uses.