]> granicus.if.org Git - postgresql/commit
Reject empty pg_hba.conf files.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 19 Oct 2011 00:09:18 +0000 (20:09 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 19 Oct 2011 00:09:18 +0000 (20:09 -0400)
commite27f52f3a1814e646733f51b8c24547371bef3eb
tree9fe57b7234c3d2419787ce4a1ff83fefc8761b5b
parent7c19e0446c049dd41aed62fa398cd809017adf5e
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.
src/backend/libpq/hba.c