diff options
author | Thomas Munro <tmunro@postgresql.org> | 2022-08-06 12:00:57 +1200 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2024-11-08 09:27:25 +1030 |
commit | b73c1496dc7aba7748eb3d55b29c4eb0dc788296 (patch) | |
tree | c8eb2730f3180f9c5189a710700479410baff555 /src/common/file_utils.c | |
parent | d291e819be0c21691e5acfe000738b47deaaf0c9 (diff) | |
download | postgresql-b73c1496dc7aba7748eb3d55b29c4eb0dc788296.tar.gz postgresql-b73c1496dc7aba7748eb3d55b29c4eb0dc788296.zip |
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 <andrew@dunslane.net> (earlier version)
Discussion: https://postgr.es/m/CA%2BhUKGLfOOeyZpm5ByVcAt7x5Pn-%3DxGRNCvgiUPVVzjFLtnY0w%40mail.gmail.com
(cherry picked from commit c5cb8f3b770c043509b61528664bcd805e1777e6)
Author: Thomas Munro <tmunro@postgresql.org>
Author: Alexandra Wang <alexandra.wang.oss@gmail.com>
Diffstat (limited to 'src/common/file_utils.c')
0 files changed, 0 insertions, 0 deletions