]> 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:41 +0000 (20:31 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 3 Mar 2010 20:31:41 +0000 (20:31 +0000)
commit1b8fe53c79f9b9b411733047de2a7a809b506591
treee1456afa6495cb61f0a94f04311072cf6e242bd0
parenta15fa97a18642db487b1176384e27a281976c950
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/commands/copy.c
src/backend/libpq/hba.c
src/interfaces/libpq/fe-connect.c