]> granicus.if.org Git - postgresql/commit
libpq: Fix inadvertent change in .pgpass lookup behavior.
authorRobert Haas <rhaas@postgresql.org>
Mon, 1 May 2017 15:27:09 +0000 (11:27 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 1 May 2017 15:29:00 +0000 (11:29 -0400)
commitbdac9836d3b910c5fd592aaeaac3c2e2e1defcad
tree9ce40fa043da49e2223d60a71c207179763f692b
parentfed6df486dca1b9e53d3f560031b9a236c99f4bb
libpq: Fix inadvertent change in .pgpass lookup behavior.

Commit 274bb2b3857cc987cfa21d14775cae9b0dababa5 caused password file
lookups to use the hostaddr in preference to the host, but that was
not intended and the documented behavior is the opposite.

Report and patch by Kyotaro Horiguchi.

Discussion: http://postgr.es/m/20170428.165432.60857995.horiguchi.kyotaro@lab.ntt.co.jp
src/interfaces/libpq/fe-connect.c