]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make unlink() work for junction points on Windows.
authorThomas Munro <tmunro@postgresql.org>
Sat, 6 Aug 2022 00:01:42 +0000 (12:01 +1200)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 7 Nov 2024 23:06:10 +0000 (09:36 +1030)
commit02a4ec478df8a4724b84d76f84e49248da204f95
treed59d8b8e597b8aaf5cf7bfe88db48895cb137e9b
parentce14dbbcafde5a629d4dbcabdadecea440e7955d
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
(cherry picked from commit f357233c9db8be2a015163da8e1ab0630f444340)

Author: Thomas Munro <tmunro@postgresql.org>
Author: Alexandra Wang <alexandra.wang.oss@gmail.com>
src/port/dirmod.c