OSDN Git Service

Don't crash initdb when we fail to get the current username.
authorMagnus Hagander <magnus@hagander.net>
Tue, 31 Mar 2009 18:58:16 +0000 (18:58 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 31 Mar 2009 18:58:16 +0000 (18:58 +0000)
commit84a059abf75019f56eba51f33f90b018df8c1116
tree99a5e0ada06c1c2667c81447a9803a78a58f2a11
parentdf13324f0881be67ed53c6108ebdff6ed238bda6
Don't crash initdb when we fail to get the current username.
Give an error message and exit instead, like we do elsewhere...

Per report from Wez Furlong and Robert Treat.
src/bin/initdb/initdb.c