copydir() and rmtree() need to use lstat, not stat, to behave as expected
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/port/copydir.c | modified | +2 −2 |
| src/port/dirmod.c | modified | +2 −2 |