]> 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:16 +0000 (20:31 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 3 Mar 2010 20:31:16 +0000 (20:31 +0000)
commitfe9a5f2f661370bf15a9dc059571c8ca9037aedc
tree53ee4bf7b46d02f946f5a7cbc66fe096b23f56ba
parentcad1ddf17c105964a15db2ce78747168d354ee62
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