Fix unobvious interaction between -X switch and subdirectory creation.
authorTom Lane
Thu, 7 Jan 2016 23:20:57 +0000 (18:20 -0500)
committerTom Lane
Thu, 7 Jan 2016 23:20:57 +0000 (18:20 -0500)
commit506ef1d07f8b51e9799f6856b03a4317297a39cb
tree7b2a61e2e38487b15703ee688279e5947909cec2
parent32e7e7fa77bab73c9df8ea4bdb1fd65793451ff6
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