pgsql: Fix pg_rewind's handling of top-level symlinks.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix pg_rewind's handling of top-level symlinks.
Date: 2015-05-28 16:44:51
Message-ID: E1Yy0vL-0004oO-9M@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix pg_rewind's handling of top-level symlinks.

The previous coding suffered a null-pointer dereference if it found any
symlink at the top level of $PGDATA. Fix that, and teach it to recurse
into a symlink for pg_xlog, but not anything else.

Per note from Abhijit Menon-Sen.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0381fefaa44f04e17dffb7e46e7677374a4fb2c7

Modified Files
--------------
src/bin/pg_rewind/copy_fetch.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2015-05-28 16:44:52 Re: pgsql: Remove pg_audit
Previous Message Stephen Frost 2015-05-28 16:41:37 pgsql: Remove pg_audit