]> granicus.if.org Git - postgresql/commit
Fix pg_rewind's handling of top-level symlinks.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 28 May 2015 16:44:31 +0000 (12:44 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 28 May 2015 16:44:39 +0000 (12:44 -0400)
commit0381fefaa44f04e17dffb7e46e7677374a4fb2c7
tree56cf8fd43aef04395af30a3f32ce7d9c4b8f4e23
parente5f1a4f1e350f1e72531d032eaa9095ba5baeb51
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.
src/bin/pg_rewind/copy_fetch.c