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

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: copydir() and rmtree() need to use lstat, not stat, to behave as
Date: 2006-07-18 22:36:46
Message-ID: 20060718223646.A712F9FA379@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2006-07-18 22:54:49 Re: [COMMITTERS] pgsql: Done: o -Display IN, INOUT,
Previous Message Bruce Momjian 2006-07-18 22:18:08 pgsql: The Win32 DEF files that are generated for libpq contain the