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

From: mha(at)postgresql(dot)org (Magnus Hagander)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't crash initdb when we fail to get the current username.
Date: 2009-03-31 18:58:16
Message-ID: 20090331185816.742CC754ADE@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2009-03-31 18:58:20 pgsql: Don't crash initdb when we fail to get the current username.
Previous Message Tom Lane 2009-03-31 17:59:56 pgsql: Add a "relistemp" boolean column to pg_class, which is true for