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

Magnus Hagander <magnus@hagander.net>

Commit: 9a427cde74718a02abd9c699e1d2d4ee223584c7
Author: Magnus Hagander <magnus@hagander.net>
Date: 2009-03-31T18:58:38Z
Releases: 8.3.8
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