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