]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix unobvious interaction between -X switch and subdirectory creation.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Jan 2016 23:20:58 +0000 (18:20 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Jan 2016 23:20:58 +0000 (18:20 -0500)
commit957e1117da128c9615e81823db2ce0bc81f8cf81
treeb4ad806f6d6af7748091e6678b2fd9032a3a380a
parentd6d6400cc0357c409262dc95d3001e70da8605c4
Fix unobvious interaction between -X switch and subdirectory creation.

Turns out the only reason initdb -X worked is that pg_mkdir_p won't
whine if you point it at something that's a symlink to a directory.
Otherwise, the attempt to create pg_xlog/ just like all the other
subdirectories would have failed.  Let's be a little more explicit
about what's happening.  Oversight in my patch for bug #13853
(mea culpa for not testing -X ...)
src/bin/initdb/initdb.c