pgsql: Fix a couple of places that would loop forever if attempts to

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix a couple of places that would loop forever if attempts to
Date: 2010-03-03 20:31:16
Message-ID: 20100303203116.32F207541D0@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.)

Tags:
----
REL8_4_STABLE

Modified Files:
--------------
pgsql/src/backend/libpq:
hba.c (r1.188.2.1 -> r1.188.2.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/libpq/hba.c?r1=1.188.2.1&r2=1.188.2.2)
pgsql/src/interfaces/libpq:
fe-connect.c (r1.375 -> r1.375.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-connect.c?r1=1.375&r2=1.375.2.1)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-03-03 20:31:22 pgsql: Fix a couple of places that would loop forever if attempts to
Previous Message Tom Lane 2010-03-03 20:31:09 pgsql: Fix a couple of places that would loop forever if attempts to