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

Magnus Hagander <magnus@hagander.net>

Commit: 9350a4ce202b9f37905fdb3409078bd1a56f17bd
Author: Magnus Hagander <magnus@hagander.net>
Date: 2009-03-31T18:58:20Z
Releases: 8.0.22
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 −3