Don't crash initdb when we fail to get the current username.
authorMagnus Hagander <[email protected]>
Tue, 31 Mar 2009 18:58:26 +0000 (18:58 +0000)
committerMagnus Hagander <[email protected]>
Tue, 31 Mar 2009 18:58:26 +0000 (18:58 +0000)
commit477a6c165023ea0cf974f8e95ed34566d1589ed0
tree5c883336b0cbf0233ff8c98af7f02c310a278a64
parent0ac8234ad967f28214b1a13399756917e4ff161b
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