pgsql: Give a proper error message if initdb password file is empty.

Lists: pgsql-committers
From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Give a proper error message if initdb password file is empty.
Date: 2014-12-05 12:37:02
Message-ID: E1Xws86-0000cd-3r@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

Give a proper error message if initdb password file is empty.

Used to say just "could not read password from file "...": Success", which
isn't very informative.

Mats Erik Andersson. Backpatch to all supported versions.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/d67be559ed8a43248c11f165d70b9dfd6439bb61

Modified Files
--------------
src/bin/initdb/initdb.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)