pgsql: Change rather bizarre code ordering in get_id().

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Change rather bizarre code ordering in get_id().
Date: 2009-06-03 16:17:49
Message-ID: 20090603161749.64B9A75331E@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Change rather bizarre code ordering in get_id(). This isn't strictly
cosmetic --- I'm wondering if geteuid could have side effects on errno,
thus possibly resulting in a misleading error message after failure of
getpwuid.

Modified Files:
--------------
pgsql/src/bin/initdb:
initdb.c (r1.170 -> r1.171)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/initdb/initdb.c?r1=1.170&r2=1.171)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2009-06-03 18:42:13 pgsql: Fix tsquerysel() to not fail on an empty TSQuery.
Previous Message User Bmomjian 2009-06-03 16:04:02 pg-migrator - pg_migrator: Stamp alpha 17.