Don't crash initdb when we fail to get the current username.
authorMagnus Hagander <[email protected]>
Tue, 31 Mar 2009 18:58:34 +0000 (18:58 +0000)
committerMagnus Hagander <[email protected]>
Tue, 31 Mar 2009 18:58:34 +0000 (18:58 +0000)
commitc98b40cb32b54127b3be76f2cea045303fddce05
treef9fe90114a0bd3b895111a3f86183843b287f672
parent4ea51a3bd42c2d01c6f5cb7f2397538687c63539
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