copydir() and rmtree() need to use lstat, not stat, to behave as expected

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 88295244be6a86aaa09a822ee857484cb46fd3ca
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-07-18T22:36:46Z
Releases: 8.2.0
copydir() and rmtree() need to use lstat, not stat, to behave as expected
with symlinks.  Noted while trying to use rmtree in new C-code pg_regress.

Files

PathChange+/−
src/port/copydir.c modified +2 −2
src/port/dirmod.c modified +2 −2