]> granicus.if.org Git - postgresql/commit
Fix unobvious interaction between -X switch and subdirectory creation.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Jan 2016 23:20:57 +0000 (18:20 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Jan 2016 23:20:57 +0000 (18:20 -0500)
commitb41fb65056076b42d64a8690d61fd73dc648645b
tree6795ae3c6bf7d6cf003a7c779d58924131c5719e
parentfa838b555f90039ae5f0e6fb86ccae6a88b42703
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