Don't crash initdb when we fail to get the current username.
authorMagnus Hagander <magnus@hagander.net>
Tue, 31 Mar 2009 18:58:20 +0000 (18:58 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 31 Mar 2009 18:58:20 +0000 (18:58 +0000)
commit4ec08898eed16eae1a910f335ef2c7dc9473adbc
tree0a8bc8867a9c3c0b2f0fbcefd25a74761d00254f
parente707aa3a8cec9a5967e5cc3a2fdb5ea731e48b81
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