aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/clog.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2022-10-25 15:24:41 +1300
committerThomas Munro <tmunro@postgresql.org>2022-10-25 16:19:05 +1300
commit4517358ee78213cd2ca18270ab4d32cd69b0b19d (patch)
tree6ea2b3163c4577b5f78e0d440c4931214684df1b /src/backend/access/transam/clog.c
parentf71007fbb3b83fba21daae9144cc07e205f2365c (diff)
downloadpostgresql-4517358ee78213cd2ca18270ab4d32cd69b0b19d.tar.gz
postgresql-4517358ee78213cd2ca18270ab4d32cd69b0b19d.zip
Fix stat() for recursive junction points on Windows.
Commit c5cb8f3b supposed that we'd only ever have to follow one junction point in stat(), because we don't construct longer chains of them ourselves. When examining a parent directory supplied by the user, we should really be able to cope with longer chains, just in case someone has their system set up that way. Choose an arbitrary cap of 8, to match the minimum acceptable value of SYMLOOP_MAX in POSIX. Previously I'd avoided reporting ELOOP thinking Windows didn't have it, but it turns out that it does, so we can use the proper error number. Reviewed-by: Roman Zharkov <r.zharkov@postgrespro.ru> Discussion: https://postgr.es/m/CA%2BhUKGJ7JDGWYFt9%3D-TyJiRRy5q9TtPfqeKkneWDr1XPU1%2Biqw%40mail.gmail.com Discussion: https://postgr.es/m/CA%2BhUKG%2BajSQ_8eu2AogTncOnZ5me2D-Cn66iN_-wZnRjLN%2Bicg%40mail.gmail.com
Diffstat (limited to 'src/backend/access/transam/clog.c')
0 files changed, 0 insertions, 0 deletions