Fix a couple of places that would loop forever if attempts to read a stdio file

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 48fcbb803bb7fefd04a750130adf4dabf1a274e0
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-03-03T20:31:29Z
Releases: 8.2.16
Fix a couple of places that would loop forever if attempts to read a stdio file
set ferror() but never set feof().  This is known to be the case for recent
glibc when trying to read a directory as a file, and might be true for other
platforms/cases too.  Per report from Ed L.  (There is more that we ought to
do about his report, but this is one easily identifiable issue.)

Files

PathChange+/−
src/backend/libpq/hba.c modified +2 −2
src/interfaces/libpq/fe-connect.c modified +2 −2