pgsql: Reject empty pg_hba.conf files.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Reject empty pg_hba.conf files.
Date: 2011-10-19 00:09:29
Message-ID: E1RGJir-00078N-Ds@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Reject empty pg_hba.conf files.

An empty HBA file is surely an error, since it means there is no way to
connect to the server. We've not heard identifiable reports of people
actually doing that, but this will also close off the case Thom Brown just
complained of, namely pointing hba_file at a directory. (On at least some
platforms with some directories, it will read as an empty file.)

Perhaps this should be back-patched, but given the lack of previous
complaints, I won't add extra work for the translators.

Branch
------
master

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

Modified Files
--------------
src/backend/libpq/hba.c | 32 ++++++++++++++++++++++----------
1 files changed, 22 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2011-10-19 00:15:11 pgsql: Make the CHECKPOINT reference page more clear.
Previous Message Tom Lane 2011-10-18 21:39:57 pgsql: Remove unnecessary AssertMacro() to suppress gcc 4.6 compiler wa