]> granicus.if.org Git - postgresql/commit
Fix a couple of places that would loop forever if attempts to read a stdio file
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 3 Mar 2010 20:31:22 +0000 (20:31 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 3 Mar 2010 20:31:22 +0000 (20:31 +0000)
commit6fe45c96653632c7c77816b67680c8a6d2fcf789
tree7fe6163d754831204f36dcc19763e27398ee6893
parente2524c518063428ed6a79c1b6d78f06a0eb251f7
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.)
src/backend/libpq/hba.c
src/interfaces/libpq/fe-connect.c