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

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

From
mha@postgresql.org (Magnus Hagander)
Date:
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/bin/initdb:
        initdb.c (r1.168 -> r1.169)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/initdb/initdb.c?r1=1.168&r2=1.169)