Don't crash initdb when we fail to get the current username.
authorMagnus Hagander <magnus@hagander.net>
Tue, 31 Mar 2009 18:58:16 +0000 (18:58 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 31 Mar 2009 18:58:16 +0000 (18:58 +0000)
commit6d81ebf8a327fac5af8b79b754edd4bdf53553f1
tree367d5a2c9b659191ec9f363d7090f9e8bc20f81c
parent722c1dd97274598ddfcda3b770f5325297618c3a
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