Thread: pgsql: copydir() and rmtree() need to use lstat, not stat, to behave as

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

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/port:
        copydir.c (r1.17 -> r1.18)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/copydir.c.diff?r1=1.17&r2=1.18)
        dirmod.c (r1.42 -> r1.43)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/port/dirmod.c.diff?r1=1.42&r2=1.43)