copydir() and rmtree() need to use lstat, not stat, to behave as expected
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 18 Jul 2006 22:36:46 +0000 (22:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 18 Jul 2006 22:36:46 +0000 (22:36 +0000)
commit88295244be6a86aaa09a822ee857484cb46fd3ca
tree92b1b5fcbc92a26c9e9359c38539edf46744819d
parent11b7aecbd4895897fcb6eb5b4d8a6dfb4df85305
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.
src/port/copydir.c
src/port/dirmod.c