Don't crash initdb when we fail to get the current username.

Magnus Hagander <magnus@hagander.net>

Commit: 7daa32daa9b28668ac12dac2d779df2648448cdc
Author: Magnus Hagander <magnus@hagander.net>
Date: 2009-03-31T18:58:26Z
Releases: 8.1.18
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.

Files

PathChange+/−
src/bin/initdb/initdb.c modified +14 −2