Re: Checking pgwin32_is_junction() errors
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Michael Paquier <michael@paquier.xyz>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-08-05T09:17:45Z
Lists: pgsql-hackers
Attachments
- v4-0001-Added-Windows-with-MinGW-environment-in-Cirrus-CI.patch (text/x-patch) patch v4-0001
- v4-0002-Provide-lstat-for-Windows.patch (text/x-patch) patch v4-0002
- v4-0004-Replace-pgwin32_is_junction-with-lstat.patch (text/x-patch) patch v4-0004
- v4-0003-Make-unlink-work-for-junction-points-on-Windows.patch (text/x-patch) patch v4-0003
On Thu, Aug 4, 2022 at 9:42 AM Thomas Munro <thomas.munro@gmail.com> wrote: > On Thu, Aug 4, 2022 at 9:28 AM Andrew Dunstan <andrew@dunslane.net> wrote: > > On 2022-08-01 Mo 16:06, Andrew Dunstan wrote: > > > I'll try it out on fairywren/drongo. > > > They are happy with patches 2, 3, and 4. > > Thanks for testing! > > If there are no objections, I'll go ahead and commit these later today. Hmm, POSIX says st_link should contain the length of a symlink's target path, so I suppose we should probably set that even though we never consult it. Here's a version that does that. I also removed the rest of the now redundant #ifdef S_ISLNK conditions.
Commits
-
Fix readlink() for non-PostgreSQL junction points on Windows.
- f71007fbb3b8 16.0 landed
-
Fix stat() for recursive junction points on Windows.
- 4517358ee782 16.0 landed
-
aix: fix misreading of condition in 8f12a4e7add
- 7e29a79a46d3 16.0 cited
-
Make unlink() work for junction points on Windows.
- f357233c9db8 16.0 landed
-
Replace pgwin32_is_junction() with lstat().
- 5fc88c5d53e4 16.0 landed
-
Provide lstat() for Windows.
- c5cb8f3b770c 16.0 landed