Provide lstat() for Windows.
authorThomas Munro <[email protected]>
Sat, 6 Aug 2022 00:00:57 +0000 (12:00 +1200)
committerThomas Munro <[email protected]>
Sat, 6 Aug 2022 00:50:11 +0000 (12:50 +1200)
commitc5cb8f3b770c043509b61528664bcd805e1777e6
treea6a1dcbf3613dd3ae209f2960c4a5b5c991b693f
parentfeb593506b9b57e21052a9a7323e8f23faabdde6
Provide lstat() for Windows.

Junction points will be reported with S_ISLNK(x.st_mode), simulating
POSIX lstat().  stat() will follow pseudo-symlinks, like in POSIX (but
only one level before giving up, unlike in POSIX).

This completes a TODO left by commit bed90759fcb.

Tested-by: Andrew Dunstan <[email protected]> (earlier version)
Discussion: https://postgr.es/m/CA%2BhUKGLfOOeyZpm5ByVcAt7x5Pn-%3DxGRNCvgiUPVVzjFLtnY0w%40mail.gmail.com
src/include/port/win32_port.h
src/port/win32stat.c