Make unlink() work for junction points on Windows.
Thomas Munro <tmunro@postgresql.org>
Make unlink() work for junction points on Windows. To support harmonization of Windows and Unix code, teach our unlink() wrapper that junction points need to be unlinked with rmdir() on Windows. Tested-by: Andrew Dunstan <andrew@dunslane.net> Discussion: https://postgr.es/m/CA%2BhUKGLfOOeyZpm5ByVcAt7x5Pn-%3DxGRNCvgiUPVVzjFLtnY0w%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/port/dirmod.c | modified | +27 −1 |
Discussion
- Checking pgwin32_is_junction() errors 17 messages · 2022-03-24 → 2022-10-12